Category : irvine32

StrNCpyAsm – copy zero terminated string2 to zero terminated string1, but copy no more than count (parameter) characters or the length of string2, example1: char str1[]= {‘h’,’e’,’l’,’l’,’o’,’ ‘,’w’,’o’,’r’,’l’,’d’,0} char str2[]= {‘G’,’o’,’o’,’d’,’-;’,’b’,’y’,’e’,0}; ;StrNCpyAsm(str1,str2,4);//terminating 0 not ;copied since only 4 characters copied ;//and ;terminating 0 not within the 4 characters after copy str1 contains: ;’G’,’o’,’o’,’d’,’o’,’ ‘,’w’,’o’,’r’,’l’,’d’,0 example2: ..

Read more