473,320 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Not able to locate LINE_MAX in limits.h

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 .
Oct 4 '08 #1
2 8668
pa********@hotmail.com wrote:
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.
Oct 4 '08 #2
pa********@hotmail.com wrote:
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 ) .
There's no such symbol (and if there were, <stdio.h>
would be a more plausible home for it). As far as I know
there is no programmatic way to discover the maximum length
of an output line, nor even whether there is a maximum.
Lines with up to 254 characters (253 plus '\n') are valid
on all hosted implementations of C.
is this limit.h deprecated .
Not by me. Maybe somebody else dislikes it, though.

--
Eric Sosman
es*****@ieee-dot-org.invalid
Oct 4 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

25
by: Maurice LING | last post by:
Hi, I think I've hit a system limit in python when I try to construct a list of 200,000 elements. My error is malloc: vm_allocate (size = 2400256) failed...... Just wondering is this...
4
by: platho | last post by:
Hello, I bounced into the max 25 columns index limits on DB2 v7.2 on NT. Is this still so in other operating systems or in v8 ? Are there plans to change this in the future ? Any workarounds...
2
by: hikums | last post by:
how can I use a function inside a function, for example I want to select col1, col2 from table1 where locate(dayofweek(current date),col3) =dayofweek(current date) col3 is a field that contains a...
16
by: Mark Bruno | last post by:
Hey, I'm learning about the limits header, and I don't understand one snippit of code. If I code: #include <limits.h> #include <stdio.h> int main() { printf("Smallest signed long long:...
7
by: mwt | last post by:
Is there a function in python that does what "locate" does in a bash shell? I know I could do it by using os.popen('locate'), but I'm curious if there's a Python "native" way to go about it....
0
by: CtrlAltDel2008 | last post by:
Hello everyone, i hope you can help me with this query. The code below all works fine, referring to the SUBSTRING part, at the moment it just displays all the text from the "http" part until the end...
88
by: santosh | last post by:
Hello all, In K&R2 one exercise asks the reader to compute and print the limits for the basic integer types. This is trivial for unsigned types. But is it possible for signed types without...
13
by: Josip | last post by:
I'm trying to limit a value stored by object (either int or float): class Limited(object): def __init__(self, value, min, max): self.min, self.max = min, max self.n = value def...
44
by: vippstar | last post by:
n1256.pdf (C99 TC3), 5.2.4.1 Translation limits p1 says: Does that mean that *any* program using an array of two or more elements other than char is allowed to be rejected by an implementation?...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
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 using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.