Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

Left Justify in printf in C

#include <stdio.h>

int main( )
{
 double dPi  = 3.14159265;
 
 printf("%-20.4f",dPi); 
}  


Output:
3.1416