Fanculo strtok()

Mezz'ora persa per:
STRTOK(3) Linux Programmer's Manual STRTOK(3)



NAME
strtok, strtok_r - extract tokens from strings

SYNOPSIS
#include <string.h>

char *strtok(char *str, const char *delim);

char *strtok_r(char *str, const char *delim, char **saveptr);

Feature Test Macro Requirements for glibc (see feature_test_macros(7)):

strtok_r(): _SVID_SOURCE || _BSD_SOURCE || _POSIX_C_SOURCE ||
_XOPEN_SOURCE

DESCRIPTION
The strtok() function parses a string into a sequence of tokens. On
the first call to strtok() the string to be parsed should be specified
in str. In each subsequent call that should parse the same string, str
should be NULL.

[ ... ]

BUGS
Avoid using these functions. If you do use them, note that:

These functions modify their first argument.

These functions cannot be used on constant strings.

The identity of the delimiting character is lost.

[ ... ]


diavolo muro


• Nessun commento • Inserisci un commento • Pubblicato il 1 agosto 2008 •

Inserisci un commento Info sui commenti

Nome:      Email:

Sito web / Pagina personale / Blog: