I have the following c function that returns a random number between 0 and maxR.
When I compile it it points the return line giving this warning message:Code:#include <stdio.h> char LB_Random(char *maxR,char *dummy) { int i; static char n[10]; int rMax = (int)maxR; rMax++; srand(time(NULL)); i = rand() % rMax; strcpy(n,(char*)i); return n; }
warning C4047: 'return' : 'unsigned char ' differs in levels of indirection from 'unsigned char [10]'
Should I be worried?