Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | "osmium" <r124c4u102@comcast.net> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: malloc |
| Date | 2011-05-03 14:35 -0500 |
| Message-ID | <92b3o5F9uhU1@mid.individual.net> (permalink) |
| References | <4dbce936$0$8355$bbae4d71@news.suddenlink.net> <925almFnc4U1@mid.individual.net> <4dbf5ca0$0$15086$bbae4d71@news.suddenlink.net> <92ag7mFadlU1@mid.individual.net> <4dc055a8$0$5073$bbae4d71@news.suddenlink.net> |
"Bill Cunningham" wrote: > osmium wrote: > >> Your post made clear that you were trying to skip the fundamentals >> and go right to the meat of the thing; for this week your target was >> "malloc". My suggestion was for a more ordered approach in which you >> might actually learn something and get a program you had written to >> work. But clearly you don't like that approach. > [...] > > How much more to "the meat of the thing" is malloc? I'm not sure that > I'm understanding you. What do you mean by a "more ordered approach" ? The > program that was written did not included malloc. And I noticed later it > was full of bugs as posted. I must admit I need to start testing code and > examining it more closely before posting. fread as was in the program is > designed to take a set number of data. > Hence my point. I am in no position to write code that expands and > ontracts memory storage on the fly. That was what my inquiry was > concerning. Using the FILE* and streams as an example. Memory that expands or contracts is more complicated than a fixed target of known maximum size.Your post tells me you can't even handle that. Thus the simpler assignment I suggested. Your knowledge of argc, for example is woefully wrong.. If you understand the basics you should be able to do what I wrote in five minutes or less.
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
malloc "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-01 01:01 -0400
Re: malloc "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-01 01:03 -0400
Re: malloc luser- -droog <mijoryx@yahoo.com> - 2011-04-30 22:31 -0700
Re: malloc "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-01 02:15 -0400
Re: malloc "BartC" <bc@freeuk.com> - 2011-05-01 13:52 +0100
Re: malloc luser- -droog <mijoryx@yahoo.com> - 2011-05-02 00:05 -0700
Re: malloc crisgoogle <crisd@telus.net> - 2011-05-02 17:43 -0700
Re: malloc Ian Collins <ian-news@hotmail.com> - 2011-05-01 17:35 +1200
Re: malloc "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-01 02:14 -0400
Re: malloc Mickey Mouse <fake@email.com> - 2011-05-01 00:18 -0700
Re: malloc "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-01 04:07 -0400
Re: malloc Barry Schwarz <schwarzb@dqel.com> - 2011-05-01 10:31 -0700
Re: malloc "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-02 16:55 -0400
Re: malloc "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-02 23:51 -0400
Re: malloc "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-02 16:58 -0400
Re: malloc Mickey Mouse <fake@email.com> - 2011-05-02 14:34 -0700
Re: malloc Ian Collins <ian-news@hotmail.com> - 2011-05-03 09:55 +1200
Re: malloc "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-03 10:20 -0400
Re: malloc Angel <angel+news@spamcop.net> - 2011-05-03 14:55 +0000
Re: malloc "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-03 15:34 -0400
Re: malloc Angel <angel+news@spamcop.net> - 2011-05-03 20:56 +0000
Re: malloc "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-03 11:29 -0400
Re: malloc Seebs <usenet-nospam@seebs.net> - 2011-05-02 22:18 +0000
Re: malloc "Default User" <defaultuserbr@yahoo.com> - 2011-05-04 12:20 -0500
Re: malloc Keith Thompson <kst-u@mib.org> - 2011-05-04 10:52 -0700
Re: malloc Joe Wright <joewwright@comcast.net> - 2011-05-04 14:57 -0400
Re: malloc "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-04 18:53 -0400
Re: malloc Angel <angel+news@spamcop.net> - 2011-05-05 08:12 +0000
Re: malloc John Gordon <gordon@panix.com> - 2011-05-02 15:31 +0000
Re: malloc "osmium" <r124c4u102@comcast.net> - 2011-05-01 09:56 -0500
Re: malloc "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-01 18:20 -0400
Re: malloc "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-02 21:38 -0400
Re: malloc "osmium" <r124c4u102@comcast.net> - 2011-05-03 09:02 -0500
Re: malloc "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-03 15:21 -0400
Re: malloc "osmium" <r124c4u102@comcast.net> - 2011-05-03 14:35 -0500
Re: malloc "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-03 18:43 -0400
Re: malloc Tim Rentsch <txr@alumni.caltech.edu> - 2011-05-01 12:51 -0700
Re: malloc "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-02 23:49 -0400
Re: malloc Ian Collins <ian-news@hotmail.com> - 2011-05-03 13:35 +1200
Re: malloc "Bill Cunningham" <nospam@nspam.invalid> - 2011-05-03 11:27 -0400
Re: malloc Ian Collins <ian-news@hotmail.com> - 2011-05-04 07:54 +1200
Re: malloc Ben Bacarisse <ben.usenet@bsb.me.uk> - 2011-05-03 21:50 +0100
csiph-web