Skip to content

Commit 1e7a5f5

Browse files
author
Vladimir Kotal
committed
fix wording
1 parent 6d592b2 commit 1e7a5f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

file-api.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@
10081008
However, it is not part of SUSv4 and thus not portable, unfortunately.
10091009
The portable way is to call \texttt{stat} on each directory entry.
10101010
\item \texttt{rmdir} does not work on directories that are not empty. You have
1011-
to remove all entries before you can delete a directory. You you use
1011+
to remove all entries before you can delete a directory. You can use
10121012
\texttt{system("rm -r xxx")} etc. but be careful to sanitize the environment and
10131013
the directory name to avoid any security implications.
10141014
\item \label{REMOVE} The specification also defines \texttt{remove} which
@@ -1030,7 +1030,7 @@
10301030
while(de = \emprg{readdir}(d))
10311031
printf("%s\bs{}n", de->d_name);
10321032
\emprg{closedir}(d);
1033-
\}
1033+
\}
10341034
return (0);
10351035
\}
10361036
\end{alltt}

0 commit comments

Comments
 (0)