Fixed Length Limitations 
Author Message
 Fixed Length Limitations

How can you overcome the fixed length limitations of an array
implementation of a list without using a linked list?

Lunda



Fri, 23 Aug 2002 03:00:00 GMT  
 Fixed Length Limitations
On Mon, 06 Mar 2000 09:15:28 +0200, Lunda Wright

Quote:
> How can you overcome the fixed length limitations of an array
> implementation of a list without using a linked list?

> Lunda

Allocate the array dynamically with malloc(), change its size as
needed with realloc().

Jack Klein
--
Home: http://jackklein.home.att.net



Fri, 23 Aug 2002 03:00:00 GMT  
 Fixed Length Limitations

Quote:
>How can you overcome the fixed length limitations of an array
>implementation of a list without using a linked list?

reallocate space when the arraysize changes

Paul



Fri, 23 Aug 2002 03:00:00 GMT  
 Fixed Length Limitations

Quote:

> How can you overcome the fixed length limitations of an array
> implementation of a list without using a linked list?

realloc()

--

What one knows is, in youth, of little moment; they know enough who
know how to learn. - Henry Adams

A thick skin is a gift from God. - Konrad Adenauer
__________________________________________________________
Fight spam now!
Get your free anti-spam service: http://www.brightmail.com



Fri, 23 Aug 2002 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. More Fixed Length Limitations

2. ArrayList Length Limitations

3. BSTR length limitation?

4. Tree Control text length limitation

5. Text Length Limitation on Status Bar

6. Visual Studio .NET Beta 2 Service Pack 2 fixes time limitation

7. Creating a fixed-length structure

8. Pading 0s in front fixed length-fields

9. please help use qsort with fixed length strings

10. Best handling of non-fixed-length data??

11. Spanned Fixed-Length Records

12. Fixed-Length File I/O

 

 
Powered by phpBB® Forum Software