[cs631apue] function forward declarations

Jan Schaumann jschauma at stevens.edu
Wed Sep 8 12:46:50 EDT 2021


Hello,

In the Week 01 checkpoint, one of you asked:

---
Why does the program of welcome.c work after we
declare the getlogin function in the front without
providing an 'include' for the header file of unistd.h
as told in the manual page?

It should not work without implementation of getlogin
function! 
---

Can one of you help answer this question?

-Jan


More information about the cs631apue mailing list