It was only an example to point him in the right direction...
The big reason it doesn't work is the total lack of compiler support for strings.
I know we can't... but we should be able to.You can't assign a C string because you can't assign arrays.
Now I know the tradition and I get how to work with the library to get results... but really, the second generation C compiler, way back in the 70s should have fixed this obvious and glaring omission... but here we are nearly half a century later, still messing with arrays and pointers.
I started out in procedural Pascal which was essentially C with strings... I still miss it.