Mikroelektronika MIKROE-742 데이터 시트
STRING LIBRARY
The mikroPascal PRO for AVR includes a library which automatizes string related tasks.
Library Functions
- memchr
- memcmp
- memcpy
- memmove
- memset
- strcat
- strchr
- strcmp
- strcpy
- strlen
- strncat
- strncpy
- strspn
- strcspn
- strncmp
- strpbrk
- strrchr
- strstr
- memcmp
- memcpy
- memmove
- memset
- strcat
- strchr
- strcmp
- strcpy
- strlen
- strncat
- strncpy
- strspn
- strcspn
- strncmp
- strpbrk
- strrchr
- strstr
memchr
496
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6
Prototype
function memchr(p : ^byte; ch : byte; n : word) : word;
Description
The function locates the first occurrence of the word ch in the initial n words of
memory area starting at the address p. The function returns the offset of this
occurrence from the memory address p or 0xFFFF if ch was not found.
memory area starting at the address p. The function returns the offset of this
occurrence from the memory address p or 0xFFFF if ch was not found.
For the parameter p you can use either a numerical value (literal/variable/con-
stant) indicating memory address or a dereferenced value of an object, for
example
stant) indicating memory address or a dereferenced value of an object, for
example
@mystring or @PORTB
.