Skip to content

Commit 6a5284f

Browse files
committed
yyin & fopen.
1 parent 55da044 commit 6a5284f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/class-assignments/labs-assignment-2020.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ Family of fopen(), fread() functions, et al are prohibited. Instead use
9090
functions from the printf(3) family, and system calls like open(2),
9191
read(2), write(2), etc.
9292

93+
!!!! The only exception is the use of fopen() to initialize flex's yyin
94+
for a non-interactive shell mode - that is allowed.
95+
9396
popen(3), system(3), and all other functions that fork() inside are
9497
strictly prohibited. The only way to create a new process for you is to
9598
use fork(2).

0 commit comments

Comments
 (0)