lp = fopen("/dev/lp0","w") fputs(lp,"Hello world!") fclose(lp)