tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: System Administrator <sysadmin () sba ! miami ! edu>
To: tru64-unix-managers
Subject: SUMMARY: Using getusershell() function in C++
Date: Mon, 30 Dec 1996 15:20:10 +0000	[thread overview]
Message-ID: <96076343421874.tru64-unix-managers.marc@archive.invalid> (raw)

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   |\/| 
=+=------------------------\/---------------------------------------=+=

                 reply	other threads:[~1996-12-30 15:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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