tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: Using getusershell() function in C++
@ 1996-12-30 15:20 System Administrator
  0 siblings, 0 replies; only message in thread
From: System Administrator @ 1996-12-30 15:20 UTC (permalink / raw)
  To: tru64-unix-managers

Few days ago I asked a question about being able to use getusershell()
function from standard C library in C++.

Thanks to Paul A Sand <pas@unh.edu>,
          "Daniel S. Riley" <dsr@mail.lns.cornell.edu>
	  "Robert L. McMillin" <rlm@syseca-us.com> and
	  Ray Bellis <Ray.Bellis@community.co.uk>.

The answer is simple. Since the function getusershell() was
not declared anywhere, I needed to put

extern "C" { getusershell();} 

to get C++ to recognize the function...




=+=------------------------/\---------------------------------------=+=
       Igor Natanzon      |/\| E-mail: sysadmin@homer.bus.miami.edu
    System Administrator  |/\|            igor@cs.cs.miami.edu
  			  |--| 
    University of  Miami  |\/|           Office Phone: 284-1771  
     School of Business   |\/| 
=+=------------------------\/---------------------------------------=+=

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-12-30 15:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-12-30 15:20 SUMMARY: Using getusershell() function in C++ System Administrator

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox