SGI CC compiler: What happens if I use --> #include "unistd.h" and "stdio.h"?

C

clusardi2k

Hello,

I'm trying to understand someone else code.

The below compiles and works fine and dandy.

#include <sys/types.h>
#include "unistd.h"
#include "stdio.h"

Is it o'kay to change it to the below? (It may be causing me an
error.)

#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>

Thank you,
Christopher Lusarsdi
 
C

clusardi2k

I forgot to post that these dot h's do not exist in non system
directories.

Sorry,
Chris Lusardi
 
V

Victor Bazarov

I'm trying to understand someone else code.

The below compiles and works fine and dandy.

#include <sys/types.h>
#include "unistd.h"
#include "stdio.h"

Is it o'kay to change it to the below? (It may be causing me an
error.)

#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>

It "may be causing"? What do you mean? Is it causing or is it not
causing?

There is no standard header <unistd.h> nor "unistd.h". It's probably
compiler-specific, so read your documentation about it. As to 'stdio.h',
there is no form of that header that has double quotes. It _must_ be
<stdio.h>, and never "stdio.h".

V
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top