fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int c=34+21+1;
  5. while (c--) putchar('-');
  6. printf("\n%-34s|%21.2f\n", "test stuff:", 1234.567);
  7. printf("%-34s|%21.2f", "looooooooong test:", 1234.567);
  8. return 0;
  9. }
  10.  
Success #stdin #stdout 0s 2292KB
stdin
Standard input is empty
stdout
--------------------------------------------------------
test stuff:                       |              1234.57
looooooooong test:                |              1234.57