Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/string.h

    r3875f106 rbc56f30  
    3333 */
    3434
    35 #ifndef LIBC_STRING_H_
    36 #define LIBC_STRING_H_
     35#ifndef _LIBC_STRING_H_
     36#define _LIBC_STRING_H_
    3737
    38 #if defined(_HELENOS_SOURCE) && !defined(_REALLY_WANT_STRING_H)
     38#if defined(_HELENOS_SOURCE) && !defined(_REALLY_WANT_STRING_H) && \
     39    !defined(_LIBC_SOURCE)
    3940#error Please use str.h and mem.h instead
    4041#endif
    4142
     43#include <_bits/decls.h>
    4244#include <_bits/size_t.h>
    4345#include <_bits/NULL.h>
    4446#include <mem.h>
     47
     48__C_DECLS_BEGIN;
    4549
    4650extern char *strcpy(char *, const char *);
     
    6367extern size_t strlen(const char *);
    6468
     69#if defined(_HELENOS_SOURCE) || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_LIBC_SOURCE)
     70extern size_t strnlen(const char *, size_t);
     71extern char *strdup(const char *);
     72extern char *strndup(const char *, size_t);
     73#endif
     74
     75__C_DECLS_END;
     76
    6577#endif
    6678
Note: See TracChangeset for help on using the changeset viewer.