JanetDocsPlaygroundI'm feeling luckyGitHub sign in

memcmp



    cfunction
    src/core/corelib.c on line 658, column 1

    (memcmp a b &opt len offset-a offset-b)

    Compare memory. Takes to byte sequences `a` and `b`, and return 0 
    if they have identical contents, a negative integer if a is less 
    than b, and a positive integer if a is greather than b. Optionally 
    take a length and offsets to compare slices of the bytes sequences.


0 examplesSign in to add an example
Loading...