Searched defs:str (Results 1 - 25 of 65) sorted by relevance

123

/ast/src/lib/libast/vec/
H A Dvecstring.c34 * load a string vector from lines in str
38 vecstring(const char* str) argument
43 if (!str || !*str || !(buf = strdup(str))) vec = 0;
/ast/src/lib/libexpr/
H A Dextype.c30 #define str(s) # s macro
31 #define xstr(s) str(s)
/ast/src/cmd/tests/sfio/
H A Dtlongdouble.c30 char *s, *str; local
36 if(!(str = malloc(strlen(s)+1)) )
38 strcpy(str,s);
40 if(sfsscanf(str,"%Le",&ldval) != 1)
45 if(strcmp(s,str) != 0)
46 terror("Bad conversion, expecting %s and getting %s",str,s);
H A Dtungetc.c25 char *str, *alpha, *s; local
29 str = "0123456789";
41 if(strncmp(s,str,10) != 0)
H A Dtwc.c38 char str[256]; local
47 wcstombs(str, wuf, sizeof(str));
48 if (strcmp(tst, str))
49 terror("swprintf %%ls \"%s\" expected, \"%s\" returned", tst, str);
52 wcstombs(str, wuf, sizeof(str));
53 if (strcmp(tst, str))
54 terror("swprintf %%S \"%s\" expected, \"%s\" returned", tst, str);
62 wcstombs(str, wu
[all...]
H A Dtwchar.c38 char str[256]; local
47 wcstombs(str, wuf, sizeof(str));
48 if (strcmp(tst, str))
49 terror("swprintf %%ls \"%s\" expected, \"%s\" returned", tst, str);
52 wcstombs(str, wuf, sizeof(str));
53 if (strcmp(tst, str))
54 terror("swprintf %%S \"%s\" expected, \"%s\" returned", tst, str);
61 wcstombs(str, wu
[all...]
H A Dtpoll.c27 Sfio_t *f, *g, *str, *fr, *fw, *sf[2]; local
40 if(!(str = sfopen(NIL(Sfio_t*),"abc","s")) )
54 sf[1] = str;
55 if((c = sfpoll(sf,2,0)) != 1 || sf[0] != str)
56 terror("Only str should be available c=%d",c);
70 sf[1] = str;
71 if(sfpoll(sf,2,0) != 1 || sf[0] != str)
72 terror("Only str should be available2");
75 sf[1] = str;
77 terror("Both str
[all...]
H A Dtscanf1.c57 Sfio_t *f, *str; local
66 if(!(str = sfopen(0, "ten 10 10", "s")) )
67 terror("Can't open string stream str");
69 Mydisc.f = str;
H A Dtscanf.c70 char str[8], c[4], cl[8]; local
80 str[0] = 'x'; str[1] = 0;
81 n = sfsscanf("123","%[a-z]%d",str,&i);
84 n = sfsscanf("123","%#[a-z]%d",str,&i);
85 if(n != 2 || str[0] != 0 || i != 123)
88 str[0] = str[1] = str[2] = str[
[all...]
H A Dtstack.c83 char *s, *s1, *s2, *s3, *s4, str[1024], *ss; local
150 sfsprintf(str,sizeof(str),"%s%s%s%s",s1,s2,s3,s4);
161 if(strcmp(ss,str) != 0)
162 terror("Expect=%s Got=%s",str,ss);
/ast/src/cmd/vczip/tests/
H A Dtvcsum.c26 { Vcchar_t* str; member in struct:_pair_s
44 for(k = 0; Md5[k].str; ++k)
45 { if((n = vcxencode(&xx, Md5[k].str, strlen((char*)Md5[k].str), &sum)) < 0 )
/ast/src/lib/libast/uwin/
H A Da64l.c45 extern long a64l(const char *str) argument
53 if((c= *str++)==0)
/ast/src/lib/libvcodex/Vcdelta/
H A Dvcdtable.c37 Vcchar_t* str = (Vcchar_t*)argstr; local
41 *str++ = code[i].inst1.type;
43 *str++ = code[i].inst2.type;
45 *str++ = code[i].inst1.size;
47 *str++ = code[i].inst2.size;
49 *str++ = code[i].inst1.mode;
51 *str++ = code[i].inst2.mode;
63 Vcchar_t* str = (Vcchar_t*)argstr; local
67 code[i].inst1.type = *str++;
69 code[i].inst2.type = *str
[all...]
/ast/src/lib/libjcl/
H A Dlib.c229 stash(Jcl_t* jcl, Vmalloc_t* vm, const char* str, int path) argument
236 n = strlen(str);
239 strcpy(s, str);
/ast/src/lib/libast/sfio/
H A Dsftable.c31 static char* sffmtint(const char* str, int* v) argument
33 static char* sffmtint(str, v)
34 char* str;
38 for(*v = 0; isdigit(*str); ++str)
39 *v = *v * 10 + (*str - '0');
41 return (char*)str;
/ast/src/lib/libodelta/
H A Dsuftree.c317 long mtchsuftree(Suftree* tree, Element* str, long len, Element** mtchp) argument
324 endstr = str + len;
327 if(!(match = child_find(tree,*str)))
333 for(sp = str; sp < endstr && mp < endmp; ++sp, ++mp)
338 mlen += sp-str;
342 str = sp;
345 if(mp < endmp || str >= endstr)
/ast/src/cmd/tests/
H A Dopt.c155 int str; local
172 str = 0;
191 str = NEW;
213 argv += str;
225 ostr = str;
230 if (!str)
252 sfprintf(sfstdout, " str=%s", argv[opt_info.index - 1]);
267 if (!str && *(argv += opt_info.index))
272 sfprintf(sfstdout, "argument=%d value=\"%s\"\n", ++str, command);
277 str
[all...]
/ast/src/lib/libast/astsa/
H A Doptlib.h82 char* str; /* optstr() string */ member in struct:Optstate_s
/ast/src/lib/libast/misc/
H A Doptlib.h88 char* str; /* optstr() string */ member in struct:Optstate_s
/ast/src/lib/libdss/
H A Dcxmap.c271 str2num(Cx_t* cx, Cxmap_t* map, const char* str, Cxunsigned_t* num) argument
281 if (!(*edit->str2numf)(cx, str, strlen(str), num, cx->disc))
284 else if (!regexec(&edit->re, str, elementsof(match), match, 0) && !regsubexec(&edit->re, str, elementsof(match), match))
297 cxstr2num(Cx_t* cx, Cxformat_t* format, const char* str, size_t siz, Cxunsigned_t* p) argument
312 sfwrite(cx->tp, str, siz);
/ast/src/cmd/ksh93/bltins/
H A Denum.c97 static int enuminfo(Opt_t* op, Sfio_t *out, const char *str, Optdisc_t *fp) argument
105 if(strcmp(str,"default")==0)
111 else if(strcmp(str,"case")==0)
/ast/src/cmd/ksh93/edit/
H A Dcompletion.c78 * overwrites <str> to common prefix of <str> and <newstr>
79 * if <str> is equal to <newstr> returns <str>+strlen(<str>)+1
80 * otherwise returns <str>+strlen(<str>)
82 static char *overlaid(register char *str,register const char *newstr,int nocase) argument
85 while((c= *(unsigned char *)str) && ((d= *(unsigned char*)newstr++),charcmp(c,d,nocase)))
86 str
[all...]
/ast/src/cmd/ksh93/sh/
H A Darith.c224 char *str = (char*)*ptr; local
242 register int c = *str;
243 register char *xp=str;
246 str++;
247 c = mbchar(str);
254 while(xp=str, c=mbchar(str), isaname(c));
255 str = xp;
258 str = nv_endsubscript((Namval_t*)0,str,
509 sh_strnum(register const char *str, char** ptr, int mode) argument
536 sh_arith(Shell_t *shp,register const char *str) argument
541 sh_arithcomp(Shell_t *shp,register char *str) argument
[all...]
H A Denv.c115 * add name=value pair given by <str> to <ep>
120 int env_add(Env_t *ep, const char *str, int flags) argument
122 Evar_t *vp = (Evar_t*)dtmatch(ep->dt,(void*)str);
123 if(vp && strcmp(str,vp->un.ptr)==0)
126 str = strdup(str);
131 vp->un.ptr = (char*)str;
148 vp->un.ptr = (void*)str;
166 int env_delete(Env_t *ep, const char *str) argument
168 Evar_t *vp = (Evar_t*)dtmatch(ep->dt,(void*)str);
[all...]
H A Dstring.c329 * print <str> quoting chars so that it can be read by the shell
457 * print <str> quoting chars so that it can be read by the shell
699 * character before <str> must be a '['
702 char *sh_checkid(char *str, char *last) argument
704 register unsigned char *cp = (unsigned char*)str;

Completed in 33 milliseconds

123