/* File: weird2.c Fixing the very weird bug. */ #include #include "genlib.h" #include "simpio.h" #include "strlib.h" /* Using the static keyword keeps your global variables private */ static int strlen ; static string str ; main() { int length ; printf ("Enter a string: ") ; str = GetLine() ; length = StringLength(str) ; printf ("The length of that string is: %d\n", length) ; } _________________________________________________________ retriever% cc201 weird2.c retriever% retriever% a.out Enter a string: hello world The length of that string is: 11 retriever%