The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Array inside an array manas_ranjan UNIX for Advanced & Expert Users 5 06-10-2008 03:25 PM
Return an array of strings from user defined function in awk user_prady Shell Programming and Scripting 2 12-04-2007 12:03 AM
create array holding characters from sring then echo array. rorey_breaker Shell Programming and Scripting 5 09-28-2007 09:42 AM
How to concatenate two strings or several strings into one string in B-shell? fontana Shell Programming and Scripting 2 08-26-2005 12:58 PM
sort() array of strings in perl photon Shell Programming and Scripting 2 10-19-2004 02:27 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 09-12-2007
davidcreston davidcreston is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 1
array of strings

Hi
I need a better idea to implementing following in my code.

I need to store 80 long strings that will be used to display one by one in my GUI application. now i am storing those 80 long string in following two dimentational array.

uchar vpn_alm_long_str[MAX_ALARM][1024]={ }

each index will be an string index .
all strings would be defined static and this variable would be a global one .
so the issues that i can forsee

some issue with where this will be stored like in data segment (but don't know exactly the issue?/)
does not look good to store such big data structure in memnory when they are not going to be used always.
Insetad , if we can write all these strings in a file in a special format , and on run time we extract these string from that file , that sounds a good idea .
at least that file would be stored on disk not in the memory , and that would be brought in the memory only when it will be required to read and even that would be the only a string not the complete file ..

pls any other idea??

dav
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:25 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0