Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 219 -
------------------------------------------------------------------------------
8.7 Compare two memory blocks. <Main,Alarm,Comm>
------------------------------------------------------------------------------
[Name]
memcmp
[Syntax]
#include <string.h>
int memcmp( const void *s1, const void *s2, size_t n ) ;
[Arguments]
s1 Pointer to a memory block to be compared.
s2 Pointer to a memory block to be compared.
n Byte count to be compared.
[Return]
Returns the comparison result.
Return Comparison result
-----------------+---------------------------
< 0 s1 < s2
= 0 s1 = s2
> 0 s1 > s2
[Description]
Compare "n" byte data in the location pointed by "s1" with one by
"s2".