Skip to content

Commit 7c030dc

Browse files
DOC-5953 added stdlib.h to examples with includes (#2401)
1 parent e208afd commit 7c030dc

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

content/develop/clients/hiredis/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ connection. An explanation of the code follows the example.
4040

4141
```c
4242
#include <stdio.h>
43+
#include <stdlib.h>
4344

4445
#include <hiredis/hiredis.h>
4546

content/develop/clients/hiredis/connect.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ and port as its arguments, and returns a context object.
2424

2525
```c
2626
#include <stdio.h>
27+
#include <stdlib.h>
2728

2829
#include <hiredis/hiredis.h>
2930
.
@@ -77,6 +78,7 @@ sets the context callbacks. Note that you must also include the
7778
7879
```c
7980
#include <stdio.h>
81+
#include <stdlib.h>
8082
8183
#include <hiredis/hiredis.h>
8284
#include <hiredis/async.h>

0 commit comments

Comments
 (0)