Subversion Repositories SvarDOS

Rev

Rev 2222 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2222 Rev 2223
Line 174... Line 174...
174
/* converts an ASCIIZ string into an unsigned short. returns 0 on success.
174
/* converts an ASCIIZ string into an unsigned short. returns 0 on success.
175
 * on error, result will contain all valid digits that were read until
175
 * on error, result will contain all valid digits that were read until
176
 * error occurred (0 on overflow or if parsing failed immediately) */
176
 * error occurred (0 on overflow or if parsing failed immediately) */
177
int atous(unsigned short *r, const char *s);
177
int atous(unsigned short *r, const char *s);
178
 
178
 
179
/* convert an unsigned short to ASCIZ, output set to fixlen chars if fixlen
179
/* convert an unsigned short to ASCIZ, output expanded to minlen chars
180
 * is non zero (prefixed with prefixchar if value too small, else truncated)
180
 * (prefixed with prefixchar if value too small, else truncated)
181
 * returns length of produced string */
181
 * returns length of produced string */
182
unsigned short ustoa(char *dst, unsigned short n, unsigned char fixlen, char prefixchar);
182
unsigned short ustoa(char *dst, unsigned short n, unsigned char minlen, char prefixchar);
183
 
183
 
184
/* appends a backslash if path is a directory
184
/* appends a backslash if path is a directory
185
 * returns the (possibly updated) length of path */
185
 * returns the (possibly updated) length of path */
186
unsigned short path_appendbkslash_if_dir(char *path);
186
unsigned short path_appendbkslash_if_dir(char *path);
187
 
187