Create smanip.c

smanip source file