🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #745

Swab and dynamic arrays

#745
From: Christopher Matthews Keane
Date: Sun, 13 Dec 1992 20:37
18 lines
1175 bytes
As relatively new to GNU C and using a SUN workstation, I have 2 quick
questions.
1) I received a response concerning a question concerning the binary
representation of data on a SUN vs. a PC.  I lost that address, could
that person or another please send me a short code on how to use
swab() to change data from little-endian to big-endian... I am not
having much luck finding useful docs concerning this function.

2) I thought I remember seeing a mention that GNU C can handle dynamic
array allocation.  I realize that this is easily mimicked using
malloc(), etc.. but is this a truth or fantasy?  If it exists, what
are the limitations?

Sorry if this is a FAQ - but if a FAQ exists for this group, can
someone please point me to it?!?!?!
Cheers
Christopher Keane
keane@earthsun.umd.edu
Technical Details
Message-ID: <1992Dec13.203700.653@eng.umd.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!enterpoop.mit.edu!spool.mu.edu!darwin.sura.net!mojo.eng.umd.edu!keane

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!enterpoop.mit.edu!spool.mu.edu!darwin.sura.net!mojo.eng.umd.edu!keane
From: keane@eng.umd.edu (Christopher Matthews Keane)
Subject: Swab and dynamic arrays
Message-ID: <1992Dec13.203700.653@eng.umd.edu>
Date: Sun, 13 Dec 92 20:37:00 GMT
Organization: Project GLUE, University of Maryland, College Park
Lines: 19