diff --git a/string.asm b/string.asm index 2e2eca1..2f281b7 100644 --- a/string.asm +++ b/string.asm @@ -966,6 +966,100 @@ lb2 sty set set the disp past the current disp rtl end +**************************************************************** +* +* char *strdup(const char *str) +* +* Inputs: +* str - string to copy +* +* Outputs: +* Pointer to copy of str (allocated with malloc), +* or NULL on allocation failure. +* +**************************************************************** +* +strdup start + + csubroutine (4:str) + + ph4