Changeset 512 for trunk


Ignore:
Timestamp:
Aug 25, 2018, 6:35:02 PM (6 years ago)
Author:
viala@…
Message:

[libk] Add documentation to memcmp().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/libk/memcpy.h

    r457 r512  
    5252
    5353/*******************************************************************************************
    54  * TODO
     54 * This function compares two buffers bytewise.
     55 *******************************************************************************************
     56 * @s1     : pointer on a buffer
     57 * @s2     : pointer on another buffer to compare with @s1
     58 * @n      : number of bytes to compare
     59 * @return : = 0 if s1   == s2 means structural or physical equality between @s1 and @s2.
     60 *           < 0 if s1[i] < s2[i] means @s1[i] is lesser than @s2[i] current one
     61 *           > 0 if s1[i] > s2[i] means @s1[i] is greater than @s2[i] current one.
     62 * Note: i is an index to the current byte of the buffer.
    5563 ******************************************************************************************/
    5664int memcmp( const void * s1,
Note: See TracChangeset for help on using the changeset viewer.