on line 6 what is the function input() and why are you passing the address of a string constant ?
on line 7 what is lin ?
on line 6 what is the function input() and why are you passing the address of a string constant ?
on line 7 what is lin ?
> Is there a stable standard for it as there is in C?
The original POSIX standard existed before the first standard for C.
And like the C standard, it gets tweaked and amended once or twice a decade.
POSIX - Wikipedia, the free encyclopedia
Also, you need to separate in your mind the difference between a language and an API.
The C language consists of keywords like 'for', 'while', and the semantics of things like arrays, pointers, parameter passing etc.
The standard C library (an API) consists of functions like printf, scanf, strcpy etc.
The POSIX API consists of things like 'stat', 'mkdir' (and a whole lot more).
If your program has to deal with user interaction, then relaxing your portability from 'everywhere' to 'POSIX' isn't going to constrain your user base.
You can always check the manual page for each function to check what standard(s) it conforms to.
> It seems that this is just another of C99 limitations that I will have to find a work-around for.
C makes very few assumptions about what should be provided, which is why you can get C compilers for almost any microprocessor, running in almost any environment.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.