delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/06/07/15:45:17

Message-ID: <3B1FD7F1.CE8A9868@netzero.net>
Date: Thu, 07 Jun 2001 14:37:21 -0500
From: "Kenneth A. Strom" <therelic AT netzero DOT net>
X-Mailer: Mozilla 4.72 [en] (Win95; I)
X-Accept-Language: en,pdf
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: String Size Allocation Question
NNTP-Posting-Host: 4.4.8.213
X-Original-NNTP-Posting-Host: 4.4.8.213
X-Trace: excalibur.gbmtech.net 991942266 4.4.8.213 (7 Jun 2001 15:31:06 EST)
Organization: GBM Technologies Ltd
Lines: 13
X-Authenticated-User: therelic
X-Original-NNTP-Posting-Host: 127.0.0.1
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I think this is more of a C question than djgpp specfic but, I want to
work with a big text list of varying size string, reading/writing to
files and manipulating the strings won't be a problem, but I am
wondering if there is some effective way of allocating the minimum
amount of space needed for each string as they are added to the list
since they could vary greatly in size (ex.  one could effectively be
char string[100] another char string[50]).

Ken.
therelic AT netzero DOT net


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019