#include <stdio.h>
#include <string.h>
void univ_write(char *buffer, int length);
int main(void) {
int buffLength=0;
char buff[100] = {"The first time, ever I saw your face"}; ...
Type: Posts; User: Adak
#include <stdio.h>
#include <string.h>
void univ_write(char *buffer, int length);
int main(void) {
int buffLength=0;
char buff[100] = {"The first time, ever I saw your face"}; ...
If you get the strlen() from the calling function, you could make that a parameter to the one universal write function. Pass that value in along with the pointer to the first char, and have it print...