From 037491c66c5dd26899c520c40d963573e28119cf Mon Sep 17 00:00:00 2001 From: Daniel Tartavel Date: Thu, 7 May 2020 17:14:51 +0200 Subject: [PATCH] adding setutent() --- main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main.c b/main.c index 431faa0..15c5e1c 100644 --- a/main.c +++ b/main.c @@ -25,6 +25,7 @@ int isinarray( int pid, int array[], int n ) int getutmp( int pid ) { struct utmp * utmp; + setutent(); while ( (utmp = getutent()) == NULL ) { printf("toto");