Given the file alfa.c:
#include <stdio.h>
int main() { // this is a comment
puts("hello world");
}
I can format it with GNU Indent like so:
$ indent -st alfa.c
#include <stdio.h>
int
main ()
{ // this is a comment
puts ("hello world");
}
However the comment is now way off to the right. I did try adding an option:
$ indent -st -c0 alfa.c
#include <stdio.h>
int
main ()
{ // this is a comment
puts ("hello world");
}
but this is still not quite right. Can Indent be invoked such a way that the comment starts after only 1 or 2 spaces?