More Sample Programs

Function to find string length Function to copy strings Function to append string
 int xstrlen(char *s)
{
int length=0
while(*s != ‘\0’)
{      length++;
s++;
}
return length
}
 void xstrcpy(char *t,char *s)
{
while(*s != ‘\0’)
{
*t = *s;     t++;
s++;
}
*t = ‘\0’;
}
 void xstrappend(char *t,char *s)
{
while(*t != ‘\0’)    t++;
while(*s!= ‘\0’)    {
*t = *s;
t++;
s++;
}
}

null

Mr. Sandeep Soni

Founder, Trainer & CEO, Deccansoft Software Services.

Sandeep has 21 yrs of experience working in various Microsoft Technologies/Platforms incl. VB6.0, ASP, VC++, VB.NET, C#. He is involved in managing and architecting projects at Deccansoft. He will be your liaison to Deccansoft, for any kind of communication and project updates. He knows what works and what doesn’t, and what practices are most suitable for design and programming with the ultimate goal of producing a quality system.