Skip to content

Commit ae24fc6

Browse files
committed
libc/functions: change inline code to codeblock in synopsis
JIRAL CI-526
1 parent 57fe276 commit ae24fc6

File tree

247 files changed

+1170
-637
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

247 files changed

+1170
-637
lines changed

libc/functions/assert/assert.part-impl.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
## Synopsis
44

5-
`#include <assert.h>`
5+
```c
6+
#include <assert.h>
67

7-
`void assert(scalar expression);`
8+
void assert(scalar expression);
9+
```
810
911
## Status
1012

libc/functions/ctype/isalnum.part-impl.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
## Synopsis
44

5-
`#include <ctype.h>`
5+
```c
6+
#include <ctype.h>
67

7-
`int isalnum(int c);`
8+
int isalnum(int c);
9+
```
810
911
## Status
1012

libc/functions/ctype/isalpha.part-impl.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
## Synopsis
44

5-
`#include <ctype.h>`
5+
```c
6+
#include <ctype.h>
67

7-
`int isalpha(int c);`
8+
int isalpha(int c);
9+
```
810
911
## Status
1012

libc/functions/ctype/isblank.part-impl.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
## Synopsis
44

5-
`#include <ctype.h>`
5+
```c
6+
#include <ctype.h>
67

7-
`int isblank(int c);`
8+
int isblank(int c);
9+
```
810
911
## Status
1012

libc/functions/ctype/iscntrl.part-impl.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
## Synopsis
44

5-
`#include <ctype.h>`
5+
```c
6+
#include <ctype.h>
67

7-
`int iscntrl(int c);`
8+
int iscntrl(int c);
9+
```
810
911
## Status
1012

libc/functions/ctype/isdigit.part-impl.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
## Synopsis
44

5-
`#include <ctype.h>`
5+
```c
6+
#include <ctype.h>
67

7-
`int isdigit(int c);`
8+
int isdigit(int c);
9+
```
810
911
## Status
1012

libc/functions/ctype/isgraph.part-impl.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
## Synopsis
44

5-
`#include <ctype.h>`
5+
```c
6+
#include <ctype.h>
67

7-
`int isgraph(int c);`
8+
int isgraph(int c);
9+
```
810
911
## Status
1012

libc/functions/ctype/islower.part-impl.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
## Synopsis
44

5-
`#include <ctype.h>`
5+
```c
6+
#include <ctype.h>
67

7-
`int islower(int c);`
8+
int islower(int c);
9+
```
810
911
## Status
1012

libc/functions/ctype/isprint.part-impl.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
## Synopsis
44

5-
`#include <ctype.h>`
5+
```c
6+
#include <ctype.h>
67

7-
`int isprint(int c);`
8+
int isprint(int c);
9+
```
810
911
## Status
1012

libc/functions/ctype/ispunct.part-impl.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
## Synopsis
44

5-
`#include <ctype.h>`
5+
```c
6+
#include <ctype.h>
67

7-
`int ispunct(int c);`
8+
int ispunct(int c);
9+
```
810
911
## Status
1012

libc/functions/ctype/isspace.part-impl.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
## Synopsis
44

5-
`#include <ctype.h>`
5+
```c
6+
#include <ctype.h>
67

7-
`int isspace(int c);`
8+
int isspace(int c);
9+
```
810
911
## Status
1012

libc/functions/ctype/isupper.part-impl.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
## Synopsis
44

5-
`#include <ctype.h>`
5+
```c
6+
#include <ctype.h>
67

7-
`int isupper(int c);`
8+
int isupper(int c);
9+
```
810
911
## Status
1012

libc/functions/ctype/isxdigit.part-impl.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
## Synopsis
44

5-
`#include <ctype.h>`
5+
```c
6+
#include <ctype.h>
67

7-
`int isxdigit(int c);`
8+
int isxdigit(int c);
9+
```
810
911
## Status
1012

libc/functions/ctype/tolower.part-impl.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
## Synopsis
44

5-
`#include <ctype.h>`
5+
```c
6+
#include <ctype.h>
67

7-
`int tolower(int c);`
8+
int tolower(int c);
9+
```
810
911
## Status
1012

libc/functions/ctype/toupper.part-impl.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
## Synopsis
44

5-
`#include <ctype.h>`
5+
```c
6+
#include <ctype.h>
67

7-
`int toupper(int c);`
8+
int toupper(int c);
9+
```
810
911
## Status
1012

libc/functions/dirent/closedir.part-impl.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
## Synopsis
44

5-
`#include <dirent.h>`
5+
```c
6+
#include <dirent.h>
67

7-
`int closedir(DIR *dirp);`
8+
int closedir(DIR *dirp);
9+
```
810
911
## Status
1012

libc/functions/dirent/opendir.part-impl.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22

33
## Synopsis
44

5-
`#include <dirent.h>`
5+
```c
6+
#include <dirent.h>
67

7-
`DIR *fdopendir(int fd);`
8+
DIR *fdopendir(int fd);
89

9-
`DIR *opendir(const char *dirname);`
10+
DIR *opendir(const char *dirname);
11+
```
1012
1113
## Description
1214

libc/functions/dirent/readdir.part-impl.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@
22

33
## Synopsis
44

5-
`#include <dirent.h>`
5+
```c
6+
#include <dirent.h>
67

7-
`struct dirent *readdir(DIR *dirp);`
8+
struct dirent *readdir(DIR *dirp);
89

9-
`int readdir_r(DIR *restrict dirp, struct dirent *restrict entry, struct dirent **restrict result);`
10+
int readdir_r(DIR *restrict dirp,
11+
struct dirent *restrict entry,
12+
struct dirent **restrict result);
13+
```
1014
1115
## Status
1216

libc/functions/fcntl/creat.part-impl.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22

33
## Synopsis
44

5-
`#include <sys/stat.h>`
5+
```c
6+
#include <sys/stat.h>
67

7-
`#include <fcntl.h>`
8+
#include <fcntl.h>
89

9-
`int creat(const char *path, mode_t mode);`
10+
int creat(const char *path, mode_t mode);
11+
```
1012
1113
## Status
1214

libc/functions/fcntl/fcntl.part-impl.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
## Synopsis
44

5-
`#include <fcntl.h>`
5+
```c
6+
#include <fcntl.h>
67

7-
`int fcntl(int fildes, int cmd, ...);`
8+
int fcntl(int fildes, int cmd, ...);
9+
```
810
911
## Status
1012

libc/functions/fcntl/open.part-impl.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22

33
## Synopsis
44

5-
`#include <sys/stat.h>`
5+
```c
6+
#include <sys/stat.h>
67

7-
`#include <fcntl.h>`
8+
#include <fcntl.h>
89

9-
`int open(const char *path, int oflag, ...);`
10+
int open(const char *path, int oflag, ...);
1011

11-
`int openat(int fd, const char *path, int oflag, ...);`
12+
int openat(int fd, const char *path, int oflag, ...);
13+
```
1214
1315
## Status
1416

libc/functions/fnmatch/fnmatch.part-impl.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
## Synopsis
44

5-
`#include <fnmatch.h>`
5+
```c
6+
#include <fnmatch.h>
67

7-
`int fnmatch(const char *pattern, const char *string, int flags);`
8+
int fnmatch(const char *pattern, const char *string, int flags);
9+
```
810
911
## Status
1012

libc/functions/ioctl/ioctl.part-impl.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
## Synopsis
44

5-
`#include <ioctl.h>`
5+
```c
6+
#include <ioctl.h>
67

7-
`int ioctl(int fildes, int request, ... /* arg */);`
8+
int ioctl(int fildes, int request, ... /* arg */);
9+
```
810
911
## Status
1012

libc/functions/libgen/basename.full-impl.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
## Synopsis
44

5-
`#include <libgen.h>`
5+
```c
6+
#include <libgen.h>
67

7-
`char *basename(char *path);`
8+
char *basename(char *path);
9+
```
810
911
## Description
1012

libc/functions/libgen/dirname.part-impl.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
## Synopsis
44

5-
`#include <libgen.h>`
5+
```c
6+
#include <libgen.h>
67

7-
`char *dirname(char *path);`
8+
char *dirname(char *path);
9+
```
810
911
## Status
1012

libc/functions/math/acos.part-impl.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22

33
## Synopsis
44

5-
`#include <math.h>`
5+
```c
6+
#include <math.h>
67

7-
`double acos(double x);`
8+
double acos(double x);
89

9-
`float acosf(float x);`
10+
float acosf(float x);
1011

11-
`long double acosl(long double x);`
12+
long double acosl(long double x);
13+
```
1214
1315
## Status
1416

0 commit comments

Comments
 (0)