Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: question about linker Date: Thu, 05 Dec 2024 15:09:17 -0800 Organization: None to speak of Lines: 45 Message-ID: <87ttbhzq02.fsf@nosuchdomain.example.com> References: <8734j9sj0f.fsf@nosuchdomain.example.com> <87ttbpqzm1.fsf@nosuchdomain.example.com> <_o14P.71646$hspc.53247@fx10.iad> <861pymkvn4.fsf@linuxsc.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Fri, 06 Dec 2024 00:09:18 +0100 (CET) Injection-Info: dont-email.me; posting-host="121d8a154b7fcd6212a7afdcdc69d1a5"; logging-data="1945602"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/cJpvoq60jKEwQyfts/771" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:GhZJLclMB0WSLwby+dtOq/HMyqM= sha1:RQzHMgmaSFuN7ZTOLyVTp0MXetw= Bytes: 3109 BGB writes: > On 12/5/2024 9:16 AM, Tim Rentsch wrote: >> BGB writes: >> [considering .csv files and how to process them] >> >>> Brings up the thought of how, ASCII has a bunch of control >>> characters, but generally only a small number of them are used: >>> \r, \n, \t, \b >>> \e, \a, \v, \f (sometimes / rarely) >>> >>> For CSV, we used ',' (a printable ASCII character) for something >>> that (theoretically) could have used \x1E (Record Separator). >> That would have been a horrible decision. > > Well, ASCII has all of these control characters, with assigned uses, > and we use only a few of them... > > But, yeah: > Pros of comma: Easy to type, plain text, ... > Cons of comma: AFAIK, CSV files often can't have commas in data fields. CSV files *can* have commas in data fields, and there are well-defined ways to represent them. For example, this line has three fields: one,"two,three",four And there are additional rules for fields containing quotation marks. See for the most widely accepted specification. Note that RFC 4180 specifies CRLF line endings. Many of the CSV files I've dealt with use LF instead. Encoding considerations: As per section 4.1.1. of RFC 2046 [3], this media type uses CRLF to denote line breaks. However, implementors should be aware that some implementations may use other values. [...] -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */