File: libc.str.mod

package info (click to toggle)
libfiu 1.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 768 kB
  • sloc: ansic: 2,633; python: 973; makefile: 599; sh: 309
file content (22 lines) | stat: -rw-r--r-- 395 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

include: <string.h>
include: <errno.h>
include: <stdlib.h>

fiu name base: libc/str/

# glibc, when _GNU_SOURCE is defined, can have macros for strdup/strndup, so
# we need to avoid those.

v: #ifndef strdup
char *strdup(const char *s);
	on error: NULL
	valid errnos: ENOMEM
v: #endif

v: #ifndef strndup
char *strndup(const char *s, size_t n);
	on error: NULL
	valid errnos: ENOMEM
v: #endif