Solved

Can anyone help me to explain me the following code snippets.

Posted on 2006-11-13
3
204 Views
Last Modified: 2010-04-15
Can anyone help me to explain me the following code snippets.I am bit confused

1) # 35 "/usr/include/iso/stdio_iso.h" 2 3

2) # 1 "/usr/include/sys/va_list.h" 1 3


3) #define _SYS_VA_LIST_H

*4) #pragma ident   "@(#)va_list.h  1.12    99/05/04 SMI"
0
Comment
Question by:tatikor_143
3 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 17935139
preprocessor directives like
#line # 35 "/usr/include/iso/stdio_iso.h"
are typically inerted int generated or preprocessed C code to set the presumed line number and source file.
This can be useful so that error messages or macros that use __FILE__ or __LINE can tell you where the original code that genrerated the error came from

#define _SYS_VA_LIST_H
defines a preprocessor macro named _SYS_VA_LIST_H

pragmas cause the impementation to behave in an implementation-defined manner
0
 

Author Comment

by:tatikor_143
ID: 17935840

Can u please explain me the above lines with a small example.

Also, What exactly the 4th point says?What it is trying to do?



0
 
LVL 8

Accepted Solution

by:
deepu chandran earned 500 total points
ID: 17936952
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question