UNIX C programs.pdf - Google Drive

10 downloads 85 Views 47KB Size Report
char s[]="os programming lab";. display(s);. } display(char *s). {. int i,len,n;. printf("\nEnter number of times to dis
AIM: Program to display a string to standard output device using System Call and Library Function call. Description: The main objective of this program is to display a string on output device n number of times using library function call write(). For this we need include header file stdlib.h header file write is a system call that is used to write ; display(s); } display(char *s) { int i,len,n; printf("\nEnter number of times to display the string: "); scanf("%d",&n); len=strlen(s); for(i=0;i