I thought you wanted to pass a charcter pointer to a sub-function, assign values to it & print it back in the main function. Please find below a sample function which achieves the same.
[code]
#include <stdio.h>
#include <malloc.h>
void get(char **p)
{
unsigned int i;
char *q;
q=*p...
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.