File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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);
2627int 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;
You can’t perform that action at this time.
0 commit comments