First Plan 9 C program compiled and ran! This is going to be a fun weekend and a fun year in general! Once I rtfm for `2c` and used the x86_64 (`6c` and `6l`) for compiling and linking it all worked.
Really interesting that we return strings instead of integers for errors and final return status (null string is success). Intuitive! #9front #clang
@bugwhisperer Nice! I’d like to learn a bit of C, and as I’m trying to use #9front, it seems a great platform to learn. Could you suggest me a couple of free text to learn the basics of C?
@chakuari Hi Antonio! I used this article that covers Plan 9 C to try and understand the differences from the more modern C versions that I had learned first: https://doc.cat-v.org/plan_9/programming/c_programming_in_plan_9
For a free book on modern C I highly recommend Jens Gustedt's "Modern C": https://gustedt.wordpress.com/2024/10/15/the-c23-edition-of-modern-c/
@bugwhisperer Thx! I’ll try.
@bugwhisperer I hope this would be simple to read as I don’t code…
@chakuari Ah, okay! Getting the basics of programming with C would be a good first step. I'd use something like: https://www.learn-c.org/. Once you've got the basics, you can move to the other resources to go deeper. Good luck!
@bugwhisperer Great! I’ll try. Thx a lot!
@76dd1b44db00b4f97c6db6eb0a3d586ab2052559e450c8015f53d258bd5e96fb @bugwhisperer Thx for the tip! I’ll try also Beej’s guide to get the toes wet, let’s see if I can learn a little bit of C.