Changeset 92fd52d7 in mainline for uspace/lib/libc/include


Ignore:
Timestamp:
2009-04-09T21:16:50Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7afb4a5
Parents:
a2c58f6
Message:

Nuke strcpy() and strcmp().

Location:
uspace/lib/libc/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/include/stdio.h

    ra2c58f6 r92fd52d7  
    5050        n = snprintf(buf, sizeof(buf), fmt, ##__VA_ARGS__); \
    5151        if (n > 0) \
    52                 (void) __SYSCALL3(SYS_KLOG, 1, (sysarg_t) buf, strlen(buf)); \
     52                (void) __SYSCALL3(SYS_KLOG, 1, (sysarg_t) buf, str_size(buf)); \
    5353}
    5454
  • uspace/lib/libc/include/string.h

    ra2c58f6 r92fd52d7  
    4646#define STR_NO_LIMIT  ((size_t) -1)
    4747
    48 /**< Maximum size of a string containing cnt characters */
    49 #define STR_BOUNDS(cnt)  (cnt << 2)
     48/**< Maximum size of a string containing @c length characters */
     49#define STR_BOUNDS(length)  ((length) << 2)
    5050
    5151extern wchar_t str_decode(const char *str, size_t *offset, size_t sz);
     
    8282 */
    8383
    84 extern int strcmp(const char *, const char *);
    8584extern int strncmp(const char *, const char *, size_t);
    8685extern int stricmp(const char *, const char *);
     
    9089
    9190extern char *strcat(char *, const char *);
    92 
    93 extern size_t strlen(const char *);
    9491
    9592extern char *strdup(const char *);
Note: See TracChangeset for help on using the changeset viewer.