Solved

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

Posted on 2006-11-13
3
184 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
Comment Utility
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
Comment Utility

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
Comment Utility
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
scanf and assignment suppression 13 142
reading tzdatabase for timezone definitions 5 122
Problem with form project 66 313
Need example 5 100
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…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.

728 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now