Searched defs:string (Results 1 - 25 of 74) sorted by relevance

123

/ast/src/cmd/tests/sfio/
H A Dtgetr.c26 char buf[50], *s, *string = "111\n222\n333"; local
28 f = sfopen(NIL(Sfio_t*),string,"s");
/ast/src/lib/libcmd/
H A Dbasename.c55 "\n string [suffix]\n"
56 "string ...\n"
104 char* string; local
136 while (string = *argv++)
137 namebase(sfstdout, string, suffix);
H A Ddate.c82 " are padded with \b0\b and string fields are padded with space."
295 char* string = 0; /* date string */ local
320 string = opt_info.arg;
476 if (s || (s = string))
478 if (*argv && string)
/ast/src/lib/libtk/generic/
H A DtkArgv.c115 * the matching key string. If found, leave a pointer to it in
328 * Generate a help string describing command-line options.
331 * Interp->result will be modified to hold a help string
412 char *string;
414 string = *((char **) infoPtr->dst);
415 if (string != NULL) {
417 string, "\"", (char *) NULL);
410 char *string; local
H A DtkCursor.c80 * Given a string describing a cursor, locate (or create if necessary)
85 * unless string couldn't be parsed correctly. In this case,
101 Tk_GetCursor(interp, tkwin, string)
104 Tk_Uid string; /* Description of cursor. See manual entry
117 nameKey.name = string;
126 cursorPtr = TkGetCursorByName(interp, tkwin, string);
264 * Given a cursor, return a textual string identifying it.
268 * value is the "string" that was used to create it.
269 * Otherwise the return value is a string giving the X
271 * string i
287 static char string[20]; local
[all...]
H A DtkBitmap.c119 * Given a string describing a bitmap, locate (or create if necessary)
124 * (i.e. a Pixmap with a single plane), unless string couldn't be
140 Tk_GetBitmap(interp, tkwin, string)
143 Tk_Uid string; /* Description of bitmap. See manual entry
160 nameKey.name = string;
171 * information contained in the string. If the string starts
172 * with "@" then the rest of the string is a file name containing
173 * the bitmap. Otherwise the string must refer to a bitmap
177 if (*string
474 char string[20]; local
[all...]
H A DtkCanvPoly.c944 char string[100];
989 sprintf(string, "%d setlinewidth\n", polyPtr->width);
990 Tcl_AppendResult(interp, string,
932 char string[100]; local
H A DtkColor.c132 * Given a string name for a color, map the name to a corresponding
337 * Given a color, return a textual string identifying
342 * value is the "string" that was used to create it.
343 * Otherwise the return value is a string that could have
345 * storage for the returned string is only guaranteed to
359 static char string[20];
366 sprintf(string, "#%04x%04x%04x", colorPtr->red, colorPtr->green,
368 return string;
356 static char string[20]; local
H A DtkFont.c132 * Given a string name for a font, map the name to an XFontStruct
137 * for the desired font. If an error occurs in mapping the string
216 * Given a font, return a textual string identifying it.
220 * value is the "string" that was used to create it.
221 * Otherwise the return value is a string giving the X
223 * string is only guaranteed to persist up until the next
239 static char string[20];
243 sprintf(string, "font id 0x%x", (unsigned int) fontStructPtr->fid);
244 return string;
463 * Measure the number of characters from a string tha
237 static char string[20]; local
[all...]
H A DtkMessage.c5 * toolkit. A message widget displays a multi-line string
35 Tk_Uid string; /* String displayed in message. */ member in struct:__anon411
36 int numChars; /* Number of characters in string, not
154 DEF_MESSAGE_TEXT, Tk_Offset(Message, string), 0},
232 msgPtr->string = NULL;
397 * Configuration information, such as text string, colors, font,
442 Tcl_SetVar(interp, msgPtr->textVarName, msgPtr->string,
445 if (msgPtr->string != NULL) {
446 ckfree(msgPtr->string);
448 msgPtr->string
[all...]
H A DtkRectOval.c975 char pathCmd[500], string[100];
983 * Generate a string that creates a path for the rectangle or oval.
1030 sprintf(string, "%d setlinewidth", rectOvalPtr->width);
1031 Tcl_AppendResult(interp, string,
962 char pathCmd[500], string[100]; local
/ast/src/cmd/std/
H A Dbanner.c180 static void banner(const char *string,const char *delim,int width) argument
183 register int c,i,n,j = strlen(string);
193 for (n = 0, cp = string; c = ccmapchr(map, *cp++) & 0x07f; dp++)
/ast/src/lib/libast/comp/
H A Dwordexp.c38 * result relaces <string>
39 * length of resulting string is returned.
41 static int sh_unquote(char* string) argument
43 register char *sp=string, *dp;
48 return(sp-string);
49 if((dp=sp) > string && sp[-1]=='$')
62 return(dp-string);
65 int wordexp(const char *string, wordexp_t *wdarg, register int flags) argument
68 register char *cp=(char*)string;
/ast/src/cmd/ksh93/sh/
H A Dtdump.c54 static int outstring(Sfio_t *out, const char *string, int n) argument
57 char *cp = (char*)string;
256 static int p_string(register const char *string) argument
258 register size_t n=strlen(string);
261 return(outstring(outfile,string,n));
H A Dstring.c22 * string processing routines for Korn shell
46 * <table> is searched for string <sp> and corresponding value is returned
172 * look for the substring <oldsp> in <string> and replace with <newsp>
173 * The new string is put on top of the stack
175 char *sh_substitute(const char *string,const char *oldsp,char *newsp) argument
177 assume string!=NULL && oldsp!=NULL && newsp!=NULL;
179 strlen(x)==(strlen(in string)+strlen(in newsp)-strlen(in oldsp));
182 register const char *sp = string;
227 /* copy rest of string */
294 * format string a
296 sh_fmtcsv(const char *string) argument
332 sh_fmtq(const char *string) argument
463 sh_fmtqf(const char *string, int single, int fold) argument
666 sh_strchr(const char *string, register const char *dp) argument
734 fmtident(const char *string) argument
[all...]
/ast/src/cmd/ksh93/bltins/
H A Dhist.c146 /* search for last line starting with string */
286 * given a file containing a command and a string of the form old=new,
287 * execute the command with the string old replaced by new
296 char *string; local
302 string = stakalloc(c+1);
303 if(read(fd,string,c)!=c)
305 string[c] = 0;
307 if((sp=sh_substitute(string,replace,newp))==0)
H A Dtrap.c240 static int sig_number(Shell_t *shp,const char *string) argument
245 if(isdigit(*string))
247 n = strtol(string,&last,10);
257 c = *string++;
/ast/src/cmd/INIT/
H A Drelease.c82 #include <string.h>
114 string(register char* s, char* tab, int num, int siz, char** e) function
170 if (string(s, day, elementsof(day), 3, &t))
172 if (!(m = string(s, mon, elementsof(mon), 3, &t)))
/ast/src/lib/libtksh/src/
H A Dbasic.c98 {"string", Tcl_StringCmd},
570 * deletion could have transferred ownership of the result string
869 * Given a variable number of string arguments, concatenate them
887 char *string;
893 * string. Use stack-allocated space for small commands, but if
901 string = va_arg(argList, char *);
902 if (string == NULL) {
905 Tcl_DStringAppend(&buf, string, -1);
874 char *string; local
H A Ddebug.c48 void __dprintfArgs(char *string, int argc, char *argv[]) argument
51 sfprintf(outFile, string);
H A Dfilecmd.c12 char *string, int *modePtr));
381 char string[30];
383 sprintf(string, "%ld", statPtr->st_dev);
384 if (Tcl_SetVar2(interp, varName, "dev", string, TCL_LEAVE_ERR_MSG)
388 sprintf(string, "%ld", statPtr->st_ino);
389 if (Tcl_SetVar2(interp, varName, "ino", string, TCL_LEAVE_ERR_MSG)
393 sprintf(string, "%ld", statPtr->st_mode);
394 if (Tcl_SetVar2(interp, varName, "mode", string, TCL_LEAVE_ERR_MSG)
398 sprintf(string, "%ld", statPtr->st_nlink);
399 if (Tcl_SetVar2(interp, varName, "nlink", string, TCL_LEAVE_ERR_MS
380 char string[30]; local
[all...]
H A Dinit.c229 double fixstrtod(char *string, char **endPtr) argument
231 double d = strtod(string, endPtr);
232 if ((endPtr != NULL) && (*endPtr != string) && ((*endPtr)[-1] == 0)) {
/ast/src/lib/libcodex/
H A Dcode-uu.c64 int string; member in struct:State_s
142 if (state->string)
172 int string; local
176 string = text = 0;
185 else if (streq(s, "string"))
193 string = 1;
210 state->string = string;
468 if (!state->string)
499 "[+string
[all...]
/ast/src/cmd/html/
H A Dhtml2rtf.h85 char* string; member in union:Data_u
/ast/src/cmd/ksh93/edit/
H A Dcompletion.c38 static char *fmtx(const char *string) argument
40 register const char *cp = string;
47 if(n==S_EOF && *string!='#')
48 return((char*)string);
49 stakwrite(string,--cp-string);
50 for(string=cp;c=mbchar(cp);string=cp)
52 if((n=cp-string)==1)
59 stakwrite(string,
[all...]

Completed in 54 milliseconds

123