Out of curiosity, I got a SIMH PDP-11 emulator that works and works with Unix V6. I thought that I would deal with some meaningless C programs and discovered a moderate horror that very few of my overtly insignificant knowledge of C seems to be really valid code in this ancient version of the language.
I read βC Programming: A Tutorial,β but even it seems to be documenting a later version of the language than v6, and this is almost the earliest documentation I could find. Does anyone know any documentation that exists? Is there anyone old enough to use this ancient dialect that remembers how it worked?
In particular, in addition to the lack of a precompiler, I was discarded by the almost complete lack of I / O support and several other things. If the documentation does not exist, the answers to these two problems will be greatly appreciated (sorry if this is against the rules here, obviously I'm a beginner).
- scanf does not exist, of course, leaving only getchar (). The problem is that atoi doesn't seem to work (although programs with calls compile with it, it seems like they just return 0), and so I donβt know how to take simple input, like two integers, sum them up and display the result, because they exist only as characters.
- There is no strcopy (), and there is no obvious way to assign values ββto strings at all. Of course, I have to miss something.
- Compiler errors are surprisingly cryptic. Yes, I know this is not a question.
- I love ed conceptually, but using it is like grinding sand in your eyes. The version here is even more Spartan than in modern organizations. Also see 3, re: addendum.
EDIT: , atoi() . , , , , .