Hello i desperlty need help in writing a c program that workswith two existing programs simple-cat.c and simple-ls.c
Write a C program (lscat.c) combining these two programs, to do: (a) what ls command does and (b) to check each file name to print its content if its name has “.txt” extension.
this is simple-cat.c
/* * Stripped down version of ‘cat’, using unbuffered I/O. * ./simple-cat < simple-cat.c */#include <stdio.h>#include <stdlib.h>#include <unistd.h>#define BUFFSIZE 32768intmain(int argc, char **argv) { int n;
PayPal Gateway not configured
PayPal Gateway not configured