/* File: main6.c Using StringLength() ; */ #include #include "slength.h" /* Public function */ /* strlen = store length */ void strlen(char * str, int *ptr) ; void strlen(char * str, int *ptr) { int len ; len = StringLength(str) ; *ptr = len ; return ; } main() { int n ; n = StringLength("Hello World") ; printf ("StringLength = %d\n", n) ; strlen("Hello World", &n) ; printf ("n = %d\n", n) ; }