[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
Function strshleft - shift string left
Syntax void strshleft(char *source, int count);
Prototype in stringhk.h
Remarks strshleft shifts the characters in the string
source left count places, padding with spaces.
Return value returns source.
Example #include <stringhk.h>
#include <stdio.h> /* for the printf */
main()
{
char msg[25];
strcpy(msg,"Buy a Mac II");
printf("%s\n",msg);
printf("%s\n",strshleft(msg,4));
}
Program output Buy a Mac II
a Mac II
See Also:
strshright()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson