SUMMARY: Using getusershell() function in C++

From: System Administrator <sysadmin_at_sba.miami.edu>
Date: Mon, 30 Dec 1996 10:20:10 -0500 (EST)

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_at_unh.edu>,
          "Daniel S. Riley" <dsr_at_mail.lns.cornell.edu>
          "Robert L. McMillin" <rlm_at_syseca-us.com> and
          Ray Bellis <Ray.Bellis_at_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_at_homer.bus.miami.edu
    System Administrator |/\| igor_at_cs.cs.miami.edu
                            |--|
    University of Miami |\/| Office Phone: 284-1771
     School of Business |\/|
=+=------------------------\/---------------------------------------=+=
Received on Mon Dec 30 1996 - 16:35:21 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:47 NZDT