Skip to content

Commit 8fc4dd1

Browse files
committed
Update README.md
1 parent d493048 commit 8fc4dd1

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ Documentation Website: [https://www.ctraceback.com](https://www.ctraceback.com)
1212
* Explicit control flow
1313
* Works with MSVC, Clang and GCC
1414
* Written in C99 with minimal dependencies
15-
* Detailed documentations
15+
* [Detailed documentations](https://www.ctraceback.com/)
1616

1717
## Sample usage
1818
```c
1919
#include <stdio.h>
20+
#include <stdlib.h>
2021
#include "c_traceback.h"
2122

2223
#define N 100
@@ -26,7 +27,7 @@ static void do_calculation(double *vec);
2627
int main(void)
2728
{
2829
ctb_clear_context();
29-
ctb_install_signal_handlers();
30+
ctb_install_signal_handler();
3031

3132
double *vec = malloc(N * sizeof(double));
3233
if (!vec)
@@ -36,7 +37,7 @@ int main(void)
3637
}
3738

3839
TRY_GOTO(do_calculation(vec), error);
39-
printf("This shouldn't be printed if there is error");
40+
printf("This shouldn't be printed if there is error\n");
4041

4142
free(vec);
4243
return 0;

0 commit comments

Comments
 (0)