PostgreSQL Source Code git master
Loading...
Searching...
No Matches
strsep.c File Reference
#include "c.h"
Include dependency graph for strsep.c:

Go to the source code of this file.

Functions

charstrsep (char **stringp, const char *delim)
 

Function Documentation

◆ strsep()

char * strsep ( char **  stringp,
const char delim 
)

Definition at line 50 of file strsep.c.

51{
52 char *s;
53 const char *spanp;
54 int c,
55 sc;
56 char *tok;
57
58 if ((s = *stringp) == NULL)
59 return (NULL);
60 for (tok = s;;)
61 {
62 c = *s++;
63 spanp = delim;
64 do
65 {
66 if ((sc = *spanp++) == c)
67 {
68 if (c == 0)
69 s = NULL;
70 else
71 s[-1] = 0;
72 *stringp = s;
73 return (tok);
74 }
75 } while (sc != 0);
76 }
77 /* NOTREACHED */
78}
char * c
static int fb(int x)

References fb().

Referenced by parse_scram_secret(), pg_logging_init(), and split_to_stringlist().