Not able to locate LINE_MAX in limits.h

P

parag_paul

hi all,
I am using a limits.h with the follwing header
/*
* ISO C99 Standard: 7.10/5.2.4.2.1 Sizes of integer types
<limits.h>
*/


But I am not able to locate LINE_MAX ( number of characters maximum
allowable in a line ) .
is this limit.h deprecated .
 
M

Martin Ambuhl

But I am not able to locate LINE_MAX ( number of characters maximum
allowable in a line ) .
is this limit.h deprecated .

There is no such thing as LINE_MAX in C. LINE_MAX is a POSIX macro and
is specifically about the maximum line limits that POSIX utilities
support. Questions about POSIX belong elsewhere. Note that many several
implementations which otherwise try to be POSIX, for example GNU C, pay
no attention to that family of macros and that even though defined have
no useful information. And, again, it has no meaning at in C itself,
and has never been part of C, and is, obviously, 'deprecated'. That
which never was is not deprecated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,436
Messages
2,571,696
Members
48,796
Latest member
Greg L.
Top