Changeset e436cfe in mainline
- Timestamp:
- 2008-10-02T07:49:38Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c2ad500
- Parents:
- 119c335
- Location:
- uspace/app/bdsh
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/util.c
r119c335 re436cfe 76 76 * Return -1 on failure, or the length of the copied string on success. 77 77 */ 78 int cli_redup(char **s1, const char *s2)78 size_t cli_redup(char **s1, const char *s2) 79 79 { 80 80 size_t len = strlen(s2) + 1; … … 93 93 memcpy(*s1, s2, len); 94 94 cli_errno = CL_EOK; 95 return (int)len;95 return len; 96 96 } 97 97 -
uspace/app/bdsh/util.h
r119c335 re436cfe 6 6 /* Internal string handlers */ 7 7 extern char * cli_strdup(const char *); 8 extern int cli_redup(char **, const char *);8 extern size_t cli_redup(char **, const char *); 9 9 extern int cli_psprintf(char **, const char *, ...); 10 10 extern char * cli_strtok_r(char *, const char *, char **);
Note:
See TracChangeset
for help on using the changeset viewer.