- Added line numbers to code block
This commit is contained in:
Tristan B. Velloza Kildaire 2023-01-15 18:37:21 +02:00
parent 2959107079
commit 97ff1761c8
1 changed files with 2 additions and 2 deletions

View File

@ -8,13 +8,13 @@ In order to use such a feature one can make use of the `extern` keyword which us
To declare an external function use the `extern efunc ...` clause followed by a function's signature. Below we have an example of the `write` function from glibc being specified:
```d
```{.d .numberLines}
extern efunc uint write(uint fd, ubyte* buffer, uint count);
```
We can now go ahead and use this function as a call such as with:
```d
```{.d .numberLines}
extern efunc uint write(uint fd, ubyte* buffer, uint count);
void test()