linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* About getopt()
@ 2002-08-08 14:48 William N. Zanatta
  2002-08-08 17:41 ` Glynn Clements
  2002-08-15 14:32 ` finer grained threading? Christopher Quinn
  0 siblings, 2 replies; 5+ messages in thread
From: William N. Zanatta @ 2002-08-08 14:48 UTC (permalink / raw)
  To: linux-c-programming

Hey,

   getopt() does memory allocation for the optarg pointer it sets when a 
value for it is found, right?
   ok, thus if I'm making something like

   char *str;
   ...

   str = optarg;


   I'll have to free() str later.

   Is that right???

   Thanks,

william

-- 
Perl combines all of the worst aspects of BASIC, C and line noise.
                 -- Keith Packard


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-08-15 15:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-08 14:48 About getopt() William N. Zanatta
2002-08-08 17:41 ` Glynn Clements
2002-08-15 14:32 ` finer grained threading? Christopher Quinn
2002-08-15 15:00   ` Christopher Quinn
2002-08-15 15:37     ` Christopher Quinn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).