Zilog Z80380 Manual de usuario Pagina 81

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 116
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 80
UM004001-COR1103 4–17
Run Time Environment Library Functions
strlen FUNCTION
Header file statement: #include <string.h>
Syntax: size_t strlen (const char *string);
The strlen function returns the length, in bytes, of string, not including the terminating null
character (‘\0’).
Return Value
This function returns the string length. There is no error returned.
strncat FUNCTION
Header file statement: #include <string.h>
Syntax: char *strncat (char *string1, const char *string2, size_t count);
The strncat function appends, at most, the first count characters of string2 to string1, termi-
nate the resulting string with a null character (‘\0’), and return a pointer to the concatenated
string (string1). If count is greater than the length of string2, the length of string2 is used in
place of count.
Return Value
The return values for these functions are described above.
Parameter Description
string
Null-terminated string
Parameter Description
string1
Destination string
string2 Source string
count Number of characters appended
Vista de pagina 80
1 2 ... 76 77 78 79 80 81 82 83 84 85 86 ... 115 116

Comentarios a estos manuales

Sin comentarios