

_____________________________________
test9.1 of assignment1:

if *curpos >= fieldlen, *curpos = fieldlen-1;
__________________________________________
test9.2 :

if *offset > length of string, *offset = length of string
____________________________________
test9.3:

if *curpos> length of string, *curpos=length of string
I found these images pretty helpful.
ReplyDelete