; strings.h interface specification for strings package ; Written to support code extracted from the second example distributed with ; the Jun. 28, 2018 notes. ; Uses the standard Hawk linkage conventions: ; R1 -- used for linkage by all support routines. ; R2 -- typically used internally as an activation record pointer. ; R3 -- typically the first parameter and function return value ; R4 -- typically the second parameter, if there is one. EXT STRLEN ; compute the length of a string ; expects R3 = s, a pointer to a string ; returns R3 the length of s ; wipes out R4, R5 EXT STRCPY ; copy null terminated string src to dst" ; expects R3 = dst, a pointer to an empty buffer ; R4 = src, a pointer to a source string ; returns R3 unchanged ; wipes out R4 to R7 END