🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2288

One Really St00pid Question

#2288
From: asldh
Date: Sun, 13 Jan 1991 17:09
29 lines
2379 bytes
  Welp, I hope that nobody out there is too offended, but I need to ask a
Really Stupid Question.  Ready?  I am writing in MS-DOS Turbo C or Microsoft C,
and I need to be able to pass the data contained in a two-dimensional char
array from one function to another.  I looked in all of my programming
references and found NOTHING on passing multi-dimensional arrays, and the
one-dimensional array method did not seem to work.  I have constructed a
workaround at the moment, which consists of declaring a global array large
enough to handle any of the arrays I need to pass, and then filling it as
needed.  However, this "solution" offends me -- it smells of old-time BASIC
methodology... :-}  Can anyone offer me a more elegant method?  I do not need
to alter the contents of the arrays (at present), but I do need to read them. 
Thanks in advance for listening to the ramblings of another lost soul...
(If this is the WRONG newsgroup, please direct your flames to alt.nul...
Thanks!)
 
 
@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!
#                             %                                            @
%     Lars D. Hedbor          ! The enduring and uninfringed freedom of    #
!       USAF, Inc.            @ humanity is among the very few things      %
@       Student at            # worth devoting your entire life to.        !
#          UAA                %                                            @
% asldh@acad2a.anc.alaska.edu !                 -Me, just this moment.     #
!                             @                                            %
@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!@#%!
   SysOp of the Observatory, (907) 277-3508, 3/12/24/9600, 8N1, Opus 1.14
              These opinions are not necessarily even mine!
                                                                      
Technical Details
Message-ID: <1991Jan13.130957.1@acad2.anc.alaska.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!samsung!usc!apple!bionet!hayes.ims.alaska.edu!acad2.anc.alaska.edu!asldh

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!samsung!usc!apple!bionet!hayes.ims.alaska.edu!acad2.anc.alaska.edu!asldh
From: asldh@acad2.anc.alaska.edu
Newsgroups: comp.std.c
Subject: One Really St00pid Question
Message-ID: <1991Jan13.130957.1@acad2.anc.alaska.edu>
Date: 13 Jan 91 17:09:57 GMT
Sender: usenet@ims.alaska.edu (J Random USENET)
Organization: University of Alaska
Lines: 29
Nntp-Posting-Host: acad2.alaska.edu