if i view stdio.h there are only symbolic constants.
where is the definition of printf and scanf is available?
i want to see the definition of printf and scanf and where it is
stored? 17 8931
lak wrote:
if i view stdio.h there are only symbolic constants.
where is the definition of printf and scanf is available?
i want to see the definition of printf and scanf and where it is
stored?
Either in <stdio.hor a header included by <stdio.h>
--
Ian Collins.
Ian Collins said:
lak wrote:
>if i view stdio.h there are only symbolic constants. where is the definition of printf and scanf is available? i want to see the definition of printf and scanf and where it is stored?
Either in <stdio.hor a header included by <stdio.h>
Deeply unlikely. Only an idiot would define printf and scanf in a header.
Since you yourself are not an idiot, I think you must have misread his
requirement. He is after the function definitions, not the declarations.
--
Richard Heathfield <http://www.cpax.org.uk >
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Richard Heathfield wrote:
Ian Collins said:
>lak wrote:
>>if i view stdio.h there are only symbolic constants. where is the definition of printf and scanf is available? i want to see the definition of printf and scanf and where it is stored?
Either in <stdio.hor a header included by <stdio.h>
Deeply unlikely. Only an idiot would define printf and scanf in a header.
Since you yourself are not an idiot, I think you must have misread his
requirement. He is after the function definitions, not the declarations.
:)
A bit odd that the OP's <stdio.honly has symbolic constants.
--
Ian Collins.
lak wrote:
if i view stdio.h there are only symbolic constants.
where is the definition of printf and scanf is available?
i want to see the definition of printf and scanf and where it is
stored?
It should be in <stdio.h>. However it might use so many compiler
extensions as to unrecognisable to a beginner or someone who only knows
ISO C. Also as Ian notes, it might be in another file included by
<stdio.h>.
Write a simple program using both printf and scanf and direct the
compiler to produce preprocessed output. If you examine this output
you'll find the declarations for printf and scanf somewhere.
In article <11************ **********@o80g 2000hse.googleg roups.com>,
lak <la********@gma il.comwrote:
>if i view stdio.h there are only symbolic constants. where is the definition of printf and scanf is available? i want to see the definition of printf and scanf and where it is stored?
You want to look at the source code for the library, which may well
not be available on you system. If you're using Linux, BSD, or some
other free operating system you will be able to get hold of it,
otherwise you're probably out of luck.
You can find the FreeBSD implementation at http://www.freebsd.org/cgi/cvsweb.cg...ib/libc/stdio/
(click on the red version numbers to see the code).
-- Richard
--
"Considerat ion shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.
Richard Heathfield wrote:
Ian Collins said:
>lak wrote:
>>if i view stdio.h there are only symbolic constants. where is the definition of printf and scanf is available? i want to see the definition of printf and scanf and where it is stored?
Either in <stdio.hor a header included by <stdio.h>
Deeply unlikely. Only an idiot would define printf and scanf in a
header. Since you yourself are not an idiot, I think you must have
misread his requirement. He is after the function definitions, not the
declarations.
Oops. I made the same mistake! Oh well.
In article <fe**********@a ioe.org>, santosh <sa*********@gm ail.comwrote:
>if i view stdio.h there are only symbolic constants. where is the definition of printf and scanf is available? i want to see the definition of printf and scanf and where it is stored?
>If you examine this output you'll find the declarations for printf and scanf somewhere.
I suspect he really wants the definitions, not the declarations.
-- Richard
--
"Considerat ion shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.
Richard Heathfield <rj*@see.sig.in validwrites:
Ian Collins said:
>lak wrote:
>>if i view stdio.h there are only symbolic constants. where is the definition of printf and scanf is available? i want to see the definition of printf and scanf and where it is stored?
Either in <stdio.hor a header included by <stdio.h>
Deeply unlikely. Only an idiot would define printf and scanf in a header.
printf and scanf could be defined as macros. (I *think* that C99's
variadic macros are up to the task.)
Since you yourself are not an idiot, I think you must have misread his
requirement. He is after the function definitions, not the declarations.
He asked for definitions, but I'm not convinced that that's really
what he's after (which is why I asked him for clarification
elsethread).
--
Keith Thompson (The_Other_Keit h) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
In article <ln************ @nuthaus.mib.or g>,
Keith Thompson <ks***@mib.orgw rote:
>whereas the definition is something like this:
int printf(const char * restrict format, ...)
{
/* lots and lots of code here */
}
Probably not "lots and lots", in this case. I suspect that most
implementations will look just like this one from FreeBSD:
int printf(char const * restrict fmt, ...)
{
int ret;
va_list ap;
va_start(ap, fmt);
ret = vfprintf(stdout , fmt, ap);
va_end(ap);
return (ret);
}
-- Richard
--
"Considerat ion shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: AMT2K5 |
last post by:
Hello.
When I compile my program I recieve lots and lots of the following
message which I am trying to decipher. "xxx was declared deprecated".
What exactly does that mean?
|
by: A_StClaire_ |
last post by:
hi,
I'm working on a project spanning five .cpp files. each file was used
to define a class. the first has my Main and an #include for each of
the other files.
problem is my third file needs to access the class defined in my second
file and I can't figure out how to work this right. if I use an
#include in my third file, my Main gives me a compile-time class
redefinition error. if I don't, the third file can't "see" the second
|
by: alan |
last post by:
Hi all,
I have create a simple function and make a pure C dll. When I use this
DLL from my main program, I found I cannot see this function's
definition tips (yellow box).
It works fine, but no yellow box tips!
Here is my creating procedure,
-----------------------------------------------
#include <stdio.h>
|
by: Robert Mens |
last post by:
Hi,
My compiler/linker gives me the strangest error:
process.o(.text+0x0): In function `login_user_login':
: multiple definition of `login_user_login'
login.o(.text+0x0): first defined here
collect2: ld returned 1 exit status
make: *** Error 1
|
by: leo.hou |
last post by:
Hi experts,
I am new to linux and all the type definitions are driving me mad. What
is the best way to check a type definition in linux? When I use man
page to check some function definition, I may come across new types.
How do you guys look up their definitions?
I tried to lookup ssize_t, what I do is trace (grep in glibc source
code) to 'typedef __ssize_t ssize_t;', then '__STD_TYPE __SSIZE_T_TYPE
__ssize_t;' then '#define...
| |
by: shaanxxx |
last post by:
I have following code .
#include<stdio.h>
int i;
int i;
int i;
int main()
{
printf("%d",i);
return 0;
|
by: Kristian Virkus |
last post by:
Hello!
I would like to write a C programm with multiple include files, where
one may use another one (to print the value of a variable).
When I try to compile the program below, the linker says, there's a
multiple definition of 'value'.
I'm using Windows XP, MinGW (included with Code::Blocks 1.0RC2) with
GCC 3.4.4.
Can anyone help me to solve the problem?
|
by: Atropo |
last post by:
Hi, all.
As you can see I'm just begining on C. with the tutorial "Sams Teach
Yourself C in 24 Hours" as a starter. on aix 5.2 when compiling a
helloWorld the gcc throws some warnings the system adminitrator
does'nt know anything about. could you point me where to check the
gcc conf. or what i'm doing wrong
Atropo@seagullmore captura.c
#include <stdio.h>
|
by: sh.vipin |
last post by:
/* Sample code*/
#include <stdio.h>
int a; //line # 3
int a; //line # 4
int main (int argc, char *argv){
printf("a is %d",a);
}
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |