Skip to content

Commit 6dc359b

Browse files
author
Vladimir Kotal
committed
fix C-style
1 parent 513e433 commit 6dc359b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

file-api.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -652,19 +652,19 @@
652652

653653
\begin{alltt}
654654
close(1);
655-
if((fd = open("out", O\_WRONLY | O\_CREAT | O\_TRUNC, 0666)) == 0)
655+
if ((fd = open("out", O\_WRONLY | O\_CREAT | O\_TRUNC, 0666)) == 0)
656656
dup(0);
657657
close(2);
658658
dup(1);
659-
if(fd == 0)
659+
if (fd == 0)
660660
close(0);
661661
\end{alltt}
662662

663663
or
664664

665665
\begin{alltt}
666666
fd = open("out", O\_WRONLY | O\_CREAT | O\_TRUNC, 0666);
667-
if(fd != 1) \{
667+
if (fd != 1) \{
668668
dup2(fd, 1);
669669
close(fd);
670670
\}

0 commit comments

Comments
 (0)