Hi,
anyone knows how to sum two string variables, I've tried with strcat but this function accept as the second parameter only a constant string. I want to do something like this:
char var1[10], var2[10], var3[20];
var1 = strcpy(var1,"hewhwho");
var2 = strcpy(var2,"fhhgoehg");
var3 =...
I wrote this, works nearly as expected but on the last element extracted from input string it attach various unexpected character, please any suggestion??
In particular look at divCmd function.
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#define BUFLEN 1024
#define STDIN 0...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.