/ast/src/cmd/tests/sfio/ |
H A D | twc.c | 38 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 D | twchar.c | 38 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 D | tlongdouble.c | 30 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 D | tscanf.c | 70 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 D | tscanf1.c | 57 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 D | tpoll.c | 27 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 D | tungetc.c | 25 char *str, *alpha, *s; local 29 str = "0123456789"; 41 if(strncmp(s,str,10) != 0)
|
/ast/src/lib/libast/vec/ |
H A D | vecstring.c | 34 * 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 D | extype.c | 30 #define str(s) # s macro 31 #define xstr(s) str(s)
|
/ast/src/cmd/vczip/tests/ |
H A D | tvcsum.c | 26 { 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/cmd/ksh93/sh/ |
H A D | arith.c | 224 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 D | env.c | 115 * 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...] |
/ast/src/lib/libvcodex/Vcdelta/ |
H A D | vcdtable.c | 37 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/libast/uwin/ |
H A D | a64l.c | 45 extern long a64l(const char *str) argument 53 if((c= *str++)==0)
|
/ast/src/cmd/tests/ |
H A D | date.c | 104 report(char* comment, char* str, char* pat, char* rem, int flags) argument 108 if (str) 110 normal(str); 147 bad(char* comment, char* str, char* pat) argument 150 report(comment, str, pat, NiL, 0); 239 char* str; local 335 if (str = field[0]) 336 escape(str); 341 if (str) 343 if (streq(str, "SE [all...] |
H A D | opt.c | 155 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/cmd/ksh93/edit/ |
H A D | hexpand.c | 51 char *str[2]; /* [0] is "old", [1] is "new" string */ 57 * if "old" not specified, keep sb->str[0] 58 * if "new" not specified, set sb->str[1] to empty string 74 if(sb->str[1]) 75 free(sb->str[1]); 76 sb->str[1] = strdup(""); 92 if(sb->str[n]) 93 free(sb->str[n]); 94 sb->str[n] = strdup(stakptr(off)); 118 else if(*cp == '&' && n == 1 && sb->str[ [all...] |
H A D | completion.c | 78 * 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/tests/ |
H A D | math.sh | 174 typeset str 191 str="$( ${SHELL} -o errexit -c "${tests[i]}" 2>&1 )" || err_exit "test $i: returned non-zero exit code $?" 192 [[ "${str}" == 'OK' ]] || err_exit "test $i: expected 'OK', got '${str}'"
|
/ast/src/lib/libtksh/src/ |
H A D | list.c | 94 FILE *str; local 119 if ((str = sfopen((Sfio_t *) 0, command, "s"))) 121 sh_eval(str, 0x8000); 122 sfclose(str); 144 char *str; local 151 str = sh_fmtq(src); 152 len = strlen(str); 153 memcpy(dst, str, len+1); 263 char *str; 305 exp->str [all...] |
/ast/src/lib/libcmd/ |
H A D | expr.c | 173 char *str; member in struct:Node_s 225 if (!(np->str = *state->arglist++)) 261 np->str = sp; 275 np->str = cp; 278 np->num = strtol(np->str,&ep,10); 307 cp = np->str; 312 if (n = regcomp(&re, rp.str, REG_LEFT|REG_LENIENT)) 321 np->str = cp + match[1].rm_so; 322 np->str[match[1].rm_eo - match[1].rm_so] = 0; 323 np->num = strtol(np->str, [all...] |
/ast/src/lib/libast/include/ |
H A D | shcmd.h | 86 # define sh_system(c,str) ((c)?(*sh_context(c)->shtrap)(str,0):system(str))
|
/ast/src/cmd/mailx/ |
H A D | cmd1.c | 466 cmdpipe(char* str) argument 485 if (!(cmd = snarf(str, &f))) { 500 else if (getmsglist(str, 0) < 0) 739 mark1(char* str, int set, int clr) argument 749 if ((mark = snarf(str, &f)) && isalpha(*mark)) { 805 else if (getmsglist(str, 0) < 0) 828 mark(char* str) argument 830 return isupper(*state.cmd->c_name) ? mark1(str, 0, MSPAM) : mark1(str, MSPAM, 0); 838 cmdtouch(char* str) argument 847 mboxit(char* str) argument 857 preserve(char* str) argument 866 unread(char* str) argument 875 notyet(char* str) argument 885 duplicate(char* str) argument [all...] |
/ast/src/lib/libodelta/ |
H A D | suftree.c | 317 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/cdt/ |
H A D | trehash.c | 45 char str[12]; /* string representation */ member in struct:_obj_s 140 tinfo("\t\tProcess %d(%d): Insert %s, get %0x", p,pid,or->str,os); 143 tinfo("\t\tProcess %d(%d): Just inserted %s but not found", p,pid,or->str); 153 p,pid, or->str, proc->obj[k].str, os); 179 twarn("\t\tProcess %d(%d): Search %s !NULL",p,pid,or->str); 221 sprintf(Obj[k].str, FORMAT, k); 234 Disc->disc.key = DTOFFSET(Obj_t,str); 275 terror("Failed to find object %s", Obj[k].str);
|