1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-04 21:05:02 +00:00
C02/include/memory.h02
2018-01-28 13:30:49 -05:00

40 lines
1.5 KiB
Plaintext

/*********************************************
* memory - Array Handling Routines for C02 *
*********************************************/
/* Sets Destination Array for subsequent function calls *
* Args: &s - Destination string */
void memdst();
/* Find Character in Destination Array *
* Args: c - Character to find *
* n - Number of bytes to search *
* Uses: Destination array specified by memdst() *
* Returns: Position of c in s *
* $FF if not found */
char memchr();
/* Compare Destination Array against Source Array *
* Args: n - Number of bytes to compare *
* &s - Source array *
* Uses: Destination array specified by memdst() *
* Returns: Result of comparison *
* -1 = Destination < Source *
* 0 = Destination = Source *
* 1 = Destination > Source */
char memcmp();
/* Copy Source Array to Destination Array *
* Args: n - Number of bytes to copy *
* &s - Source string *
* Sets: Destination string specified by memdst() */
char memcpy();
/* Fill Destination Array with Character *
* Args: c - Character to fill array with *
* n - Number of bytes to fill *
* Uses: Destination array specified by memdst() *
* Returns: Number of characters copied */
char memset();