Zilog Z80380 Manual de usuario Pagina 74

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 116
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 73
Library Functions Run Time Environment
4–10 UM004001-COR1103
memchr FUNCTION
Header file statement: #include <string.h>
Syntax: void *memchr( const void *buf, int c, size_t count )
The memchr function looks for the first occurrence of c in the first count bytes of buf. It
stops when it finds c or when it has checked the first count bytes.
Return Value
If successful, memchr returns a pointer to the first location of c in buf. Otherwise, it returns
NULL.
memcmp FUNCTION
Header file statement: #include <string.h>
Syntax: int memcmp (const void *buf1, const void *buf2, size_t count)
The memcmp function compares the first count bytes of buf1 and buf2 and returns a value
indicating their relationship, as follows:
Value Meaning
< 0 buf1 less than buf2
= 0 buf1 identical to buf2
> 0 buf1 greater than buf2
Return Value
The memcmp function returns an integer value, as described above.
Parameter Description
buf
Pointer to buffer
c Character to look for
count Number of characters
Parameter Description
buf1
First buffer
buf2 Second buffer
count Number of characters
Vista de pagina 73
1 2 ... 69 70 71 72 73 74 75 76 77 78 79 ... 115 116

Comentarios a estos manuales

Sin comentarios