Hi I am starting a project in C.
And I would like to hear from you the 10 most used c library.
just say the ones that pop up in your head.
Thanks 22 1712
"Profetas" <xu*****@yahoo.com> wrote Hi I am starting a project in C. And I would like to hear from you the 10 most used c library.
just say the ones that pop up in your head.
There's no sensible answer because it depends what you are doing. For
instance some embedded systems come with almost no libraries at all, whilst
a system like MS Visual C ships with literally thousands of functions.
In beginner programs printf() is used heavily, whilst it is often not used
at all in graphical programs. Some programs do a lot of work with files,
whilst others don't acess files at all. If you are a business programmer you
might never use the maths library, if you are a games programmer then you
will use it constantly.
On 29 May 2004 05:40:12 GMT, Emmanuel Delahaye <em**********@noos.fr>
wrote: In 'comp.lang.c', wi****@charter.net wrote:
Hi I am starting a project in C. And I would like to hear from you the 10 most used c library.
just say the ones that pop up in your head.
stdlib.h
stdlib.h is far to be a library. It's just an emerging part of the standard C library. It's a user interface.
Sorry, I misunderstood his question.
>In 'comp.lang.c', wi****@charter.net wrote: Hi I am starting a project in C. And I would like to hear from you the 10 most used c library.
just say the ones that pop up in your head.
stdlib.hstdlib.h is far to be a library. It's just an emerging part of the
standard Clibrary. It's a user interface.
Sorry, I misunderstood his question.
That is what I ment the ones that I use is
malloc.h
string.h
stdio.h
I want the ones that you use that I have not listed above.
Profetas <xu*****@yahoo.com> scribbled the following: In 'comp.lang.c', wi****@charter.net wrote:>Hi I am starting a project in C. >And I would like to hear from you the 10 most used c library. > >just say the ones that pop up in your head.
stdlib.hstdlib.h is far to be a library. It's just an emerging part of the standard Clibrary. It's a user interface.
Sorry, I misunderstood his question.
That is what I ment the ones that I use is malloc.h string.h stdio.h
I want the ones that you use that I have not listed above.
malloc.h is non-standard, needless and probably deprecated as well. All
its functionality can be found in stdlib.h.
--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
On Sun, 30 May 2004, Emmanuel Delahaye wrote: In 'comp.lang.c', "Profetas" <xu*****@yahoo.com> wrote: That is what I ment the ones that I use is malloc.h Non standard. You probably want <stdlib.h> instead. Note that the <> are part of the header.
Are they? I thought the header only contained preprocessor
directives, type definitions and 'extern' declarations... ;-)
Please read again your C-book and learn urgently the difference between a library and a header.
If his C book is the Standard, he won't learn anything relevant
there. N869 uses the word "library" as a noun in only two places I
can find: as part of the phrase "the standard library" and in footnote
5.1.2.3#2[10] (non-normative), which refers to "the floating-point
environment library <fenv.h>". 5.1.1.1 also mentions that compiled
TUs can be stored in "libraries," but that's hardly descriptive enough
to serve as a "difference" between headers and libraries from the
OP's point of view.
I'm not suggesting it wasn't a pointless question... :)
-Arthur
In 'comp.lang.c', "Arthur J. O'Dwyer" <aj*@nospam.andrew.cmu.edu> wrote: On Sun, 30 May 2004, Emmanuel Delahaye wrote: In 'comp.lang.c', "Profetas" <xu*****@yahoo.com> wrote: > That is what I ment the ones that I use is > malloc.h
Non standard. You probably want <stdlib.h> instead. Note that the <> are part of the header.
Are they? I thought the header only contained preprocessor directives, type definitions and 'extern' declarations... ;-)
True enough, thanks for the correction. My sentence was badly worded. I
actually meant
Note that the <> are part of the _name of the_ header. Please read again your C-book and learn urgently the difference between a library and a header.
If his C book is the Standard, he won't learn anything relevant there. N869 uses the word "library" as a noun in only two places I can find: as part of the phrase "the standard library" and in footnote 5.1.2.3#2[10] (non-normative), which refers to "the floating-point environment library <fenv.h>". 5.1.1.1 also mentions that compiled TUs can be stored in "libraries," but that's hardly descriptive enough to serve as a "difference" between headers and libraries from the OP's point of view.
"standard library" is clear enough to me. It's definitely not a header.
That said, I hope that the OP's C-book is not the standard. Too hard to read
to a newbie.
In addition, "the floating-point environment library <fenv.h>" is very
confusing to me, because, as you know, <fenv.h> is NOT a library! (Ok, it was
in a non-normative section...)
--
-ed- get my email here: http://marreduspam.com/ad672570
The C-language FAQ: http://www.eskimo.com/~scs/C-faq/top.html
C-reference: http://www.dinkumware.com/manuals/reader.aspx?lib=c99
FAQ de f.c.l.c : http://www.isty-info.uvsq.fr/~rumeau/fclc/
Profetas wrote: In 'comp.lang.c', wi****@charter.net wrote:
>Hi I am starting a project in C. >And I would like to hear from you the 10 most used c library. > >just say the ones that pop up in your head.
stdlib.h
stdlib.h is far to be a library. It's just an emerging part of the standard C
library. It's a user interface.
Sorry, I misunderstood his question.
That is what I ment the ones that I use is malloc.h string.h stdio.h
I want the ones that you use that I have not listed above.
Are you after the most popular header files or
perhaps the most common functions or some common
identifier?
For example, EXIT_SUCCESS and EXIT_FAILURE are common
identifiers from stdlib.h. However, if I am writing
a program the uses a lot of I/O, I'll include stdio.h,
but on an embedded system, I may not include any
library header files.
Also, how are you applying this information?
--
Thomas Matthews
C++ newsgroup welcome message: http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq: http://www.raos.demon.uk/acllc-c++/faq.html
Other sites: http://www.josuttis.com -- C++ STL Library book http://www.sgi.com/tech/stl -- Standard Template Library
Emmanuel Delahaye <em**********@noos.fr> writes: In 'comp.lang.c', "Arthur J. O'Dwyer" <aj*@nospam.andrew.cmu.edu> wrote: On Sun, 30 May 2004, Emmanuel Delahaye wrote: In 'comp.lang.c', "Profetas" <xu*****@yahoo.com> wrote: > That is what I ment the ones that I use is > malloc.h
Non standard. You probably want <stdlib.h> instead. Note that the <> are part of the header.
Are they? I thought the header only contained preprocessor directives, type definitions and 'extern' declarations... ;-)
True enough, thanks for the correction. My sentence was badly worded. I actually meant
Note that the <> are part of the _name of the_ header.
I don't believe that's correct; I think the '<' and '>' are part of
the syntax of the #include directive.
C99 6.19.2p2:
A preprocessing directive of the form
# include <h-char-sequence> new-line
searches a sequence of implementation-defined places for a header
identified uniquely by the specified sequence between the < and >
delimiters, and causes the replacement of that directive by the
entire contents of the header. How the places are specified or the
header identified is implementation-defined.
Note that it's the sequence *between* the delimiters that identifies
the header.
On the other hand, section 7 of the standard consistently refers to
the standard headers as <assert.h>, <complex.h>, <ctype.h>, etc.
--
Keith Thompson (The_Other_Keith) 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.
In <c9**********@oravannahka.helsinki.fi> Joona I Palaste <pa*****@cc.helsinki.fi> writes: malloc.h is non-standard, needless and probably deprecated as well. All its functionality can be found in stdlib.h.
Avoid topics you have no clue about. The only correct part of your
statement is that malloc.h is non-standard. Because of this, it cannot
be deprecated (only standard features can). And there is plenty of
malloc.h functionality that cannot be found in stdlib.h.
Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Dan Pop wrote: Joona I Palaste <pa*****@cc.helsinki.fi> writes:
malloc.h is non-standard, needless and probably deprecated as well. All its functionality can be found in stdlib.h. Avoid topics you have no clue about. The only correct part of
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ your statement is that malloc.h is non-standard. Because of this, it cannot be deprecated (only standard features can). And there is plenty of malloc.h functionality that cannot be found in stdlib.h.
The following is malloc.h as found on my system. Please point out
the functionality that cannot be found in stdlib.h.
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#ifndef __dj_include_malloc_h_
#define __dj_include_malloc_h_
#ifdef __cplusplus
extern "C" {
#endif
#ifndef __dj_ENFORCE_ANSI_FREESTANDING
#ifndef __STRICT_ANSI__
#ifndef _POSIX_SOURCE
#include <stdlib.h>
#endif /* !_POSIX_SOURCE */
#endif /* !__STRICT_ANSI__ */
#endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
#ifndef __dj_ENFORCE_FUNCTION_CALLS
#endif /* !__dj_ENFORCE_FUNCTION_CALLS */
#ifdef __cplusplus
}
#endif
#endif /* !__dj_include_malloc_h_ */
--
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
CBFalconer <cb********@yahoo.com> writes: Dan Pop wrote: Joona I Palaste <pa*****@cc.helsinki.fi> writes:
malloc.h is non-standard, needless and probably deprecated as well. All its functionality can be found in stdlib.h.
Avoid topics you have no clue about. The only correct part of ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ your statement is that malloc.h is non-standard. Because of this, it cannot be deprecated (only standard features can). And there is plenty of malloc.h functionality that cannot be found in stdlib.h.
The following is malloc.h as found on my system. Please point out the functionality that cannot be found in stdlib.h.
[snip]
On the other hand, I have a (very old) system whose <malloc.h>
contains declarations for a type called "struct mallinfo" (containing
information about the current state of the heap), a function
mallinfo() that returns a value of that type, and a function mallopt()
that presumably allows some control over the inner workings of
malloc(), free() and friends.
It's entirely non-standard (pre-standard, in fact), and I've never
felt the need to use it.
--
Keith Thompson (The_Other_Keith) 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.
CBFalconer <cb********@yahoo.com> wrote in message news:<40***************@yahoo.com>... Dan Pop wrote: Joona I Palaste <pa*****@cc.helsinki.fi> writes:
malloc.h is non-standard, needless and probably deprecated as well. All its functionality can be found in stdlib.h.
Avoid topics you have no clue about. The only correct part of ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ your statement is that malloc.h is non-standard. Because of this, it cannot be deprecated (only standard features can). And there is plenty of malloc.h functionality that cannot be found in stdlib.h.
The following is malloc.h as found on my system. Please point out the functionality that cannot be found in stdlib.h.
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */ #ifndef __dj_include_malloc_h_ #define __dj_include_malloc_h_
#ifdef __cplusplus extern "C" { #endif
#ifndef __dj_ENFORCE_ANSI_FREESTANDING
#ifndef __STRICT_ANSI__
#ifndef _POSIX_SOURCE
#include <stdlib.h>
#endif /* !_POSIX_SOURCE */ #endif /* !__STRICT_ANSI__ */ #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
#ifndef __dj_ENFORCE_FUNCTION_CALLS #endif /* !__dj_ENFORCE_FUNCTION_CALLS */
#ifdef __cplusplus } #endif
#endif /* !__dj_include_malloc_h_ */
It's a non-standard header. So what it contains can vary with the
system, maybe Dan's has more in it. The glibc malloc.h provides
rather more features.
Keith Thompson wrote: CBFalconer <cb********@yahoo.com> writes: Dan Pop wrote: Joona I Palaste <pa*****@cc.helsinki.fi> writes:
malloc.h is non-standard, needless and probably deprecated as well. All its functionality can be found in stdlib.h.
Avoid topics you have no clue about. The only correct part of ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ your statement is that malloc.h is non-standard. Because of this, it cannot be deprecated (only standard features can). And there is plenty of malloc.h functionality that cannot be found in stdlib.h.
The following is malloc.h as found on my system. Please point out the functionality that cannot be found in stdlib.h. [snip]
On the other hand, I have a (very old) system whose <malloc.h> contains declarations for a type called "struct mallinfo" (containing information about the current state of the heap), a function mallinfo() that returns a value of that type, and a function mallopt() that presumably allows some control over the inner workings of malloc(), free() and friends.
It's entirely non-standard (pre-standard, in fact), and I've never felt the need to use it.
Which (the non-standard) was precisely what Joona pointed out in
the first place, which makes criticizing its functionality
somewhat moot.
--
"I'm a war president. I make decisions here in the Oval Office
in foreign policy matters with war on my mind." - Bush.
"Churchill and Bush can both be considered wartime leaders, just
as Secretariat and Mr Ed were both horses." - James Rhodes.
In <40***************@yahoo.com> CBFalconer <cb********@yahoo.com> writes: Keith Thompson wrote: CBFalconer <cb********@yahoo.com> writes: Dan Pop wrote: Joona I Palaste <pa*****@cc.helsinki.fi> writes:
> malloc.h is non-standard, needless and probably deprecated as > well. All its functionality can be found in stdlib.h.
Avoid topics you have no clue about. The only correct part of ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ your statement is that malloc.h is non-standard. Because of this, it cannot be deprecated (only standard features can). And there is plenty of malloc.h functionality that cannot be found in stdlib.h.
The following is malloc.h as found on my system. Please point out the functionality that cannot be found in stdlib.h. [snip]
On the other hand, I have a (very old) system whose <malloc.h> contains declarations for a type called "struct mallinfo" (containing information about the current state of the heap), a function mallinfo() that returns a value of that type, and a function mallopt() that presumably allows some control over the inner workings of malloc(), free() and friends.
It's entirely non-standard (pre-standard, in fact), and I've never felt the need to use it.
Which (the non-standard) was precisely what Joona pointed out in the first place, which makes criticizing its functionality somewhat moot.
If Joona simply mentioned that <malloc.h> is non-standard, he would have
been right and I wouldn't have objected.
Like many other headers, <malloc.h> originated under Unix and the typical
<malloc.h> found on Unix systems has features not present in <stdlib.h>.
Features accurately mentioned by Keith.
Therefore, Joona's statement, as such, was flatly wrong.
Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
by Emmanuel Delahaye <em**********@noos.fr> May 30, 2004 at 09:30 PM Please read again your C-book and learn urgently the >difference between
alibrary and a header.
------------------------------------------------
Maybe you should tell Ritchie & Kernigham what a library is Emmanuel
On Fri, 04 Jun 2004 18:33:43 -0400, in comp.lang.c , "Profetas"
<xu*****@yahoo.com> wrote: by Emmanuel Delahaye <em**********@noos.fr> May 30, 2004 at 09:30 PM
Please read again your C-book and learn urgently the >difference between alibrary and a header. ------------------------------------------------ Maybe you should tell Ritchie & Kernigham what a library is Emmanuel
I don't think he needs to, they're well aware I'm sure. Perhaps you're not
so sure yourself tho?
--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.angelfire.com/ms3/bchambless0/welcome_to_clc.html>
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
In <58******************************@localhost.talkab outprogramming.com> "Profetas" <xu*****@yahoo.com> writes: by Emmanuel Delahaye <em**********@noos.fr> May 30, 2004 at 09:30 PM
Please read again your C-book and learn urgently the >difference between alibrary and a header. ------------------------------------------------ Maybe you should tell Ritchie & Kernigham what a library is Emmanuel
Why? From my perusal of their book, they seem to be well aware of what is
a library...
Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: J. Campbell |
last post by:
From reading this forum, it is my understanding that C++ doesn't
require the compiler to keep code that does not manifest itself in any
way to the user. For example, in the following:
{
for(int...
|
by: fabio de francesco |
last post by:
Hello,
I have a couple of years of experience with C++. I started studying
C++ syntax, then I read the B.Stroustrup's book, and eventually I went
through the N.Josuttis' book on how to program...
|
by: NickName |
last post by:
Here's the situation, developers inherit a web app from someone,
backend SQL db has about 120 user tables and the db is also being used
by other apps. Developers don't have a list of user tables...
|
by: TadPole |
last post by:
Hi all,
My main problems are:::::::::
1. Set a value within a block container that can be used and changed by
subsequent templates/block-containers/tables etc..
2. get/determine/find the...
|
by: rohit |
last post by:
Hi,
In my couple of years of experience, I have never found a single
instance where I needed to use unions and bitfields(though I have used
structures).I was just imagining where would these find...
|
by: Not Available |
last post by:
On the host server:
namespace JCart.Common
public class JCartConfiguration : IConfigurationSectionHandler
private static String dbConnectionString;
public static String ConnectionString
{
get...
|
by: steph |
last post by:
Hi,
I have a VC++ 6 project I migrated to vc 7++ DOTNET.
* in a first step , I don't use Managed extension ->
memory used is 16 Mo.
* then I check "use managed extensions" in project
properties...
|
by: **Developer** |
last post by:
I know this is not the correct NG but I've been trying to get this answered
for a while and can't find someone really knowledgeable about printers.
(Actually it does relate to something I'm...
|
by: topdawg147 |
last post by:
This question might be for another group, but since I use vb.net, I
thought I'd ask here....
I'm looking to clean up some code. Is there a development tool to tell
me which functions are not...
|
by: Greg |
last post by:
How can C# be used for a website ?
Would the person viewing a site need to have the .NET framework
installed ?
What other technologies would need to be used ?
Would a database server be needed...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
| |