#include "testharness.h" #include void BuildWord(char * pchWord) { int i; char * pch = pchWord; /* original code: * while ((i = *pch++) != '\0') { } */ do { i = *pch; // printf("i = '%c'\n",i); pch++; } while (i != '\0'); printf("%s\n",pchWord); } int main() { char *test = "foo"; test++; test--; BuildWord(test); SUCCESS; }