diff --git a/docs/bext.md b/docs/bext.md index b2993251..75e77308 100644 --- a/docs/bext.md +++ b/docs/bext.md @@ -56,6 +56,19 @@ Some targets like `gas-aarch64-darwin` have a different calling convention for v this is needed to make the compiler use the correct calling convention. \ the syntax is `__variadic__(function_name, number_of_fixed_args);` +## C-style for loops +```c +main() { + for (auto i = 2; i < 5; i++) { + printf("%lld^2 = %lld\n", i, i*i); + } + + for(;;) printf("infinite loop\n"); +} +``` + +Very useful for iterating over a range of numbers. +