The first for-loop looks like it only stops if s* is zero or the pointer s is zero.
Also you need to calculate size from the byte in the word that is zero, not the word itself.
Also you need to calculate size from the byte in the word that is zero, not the word itself.