Solved

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

Posted on 2006-11-13
3
218 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
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 while-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.

685 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