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