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:
warning C4047: 'return' : 'unsigned char ' differs in levels of indirection from 'unsigned char [10]'
Should I be worried?
	
		
			
		
		
	
				
			
		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;	
	}When I compile it it points the return line giving this warning message:
warning C4047: 'return' : 'unsigned char ' differs in levels of indirection from 'unsigned char [10]'
Should I be worried?
 
	 
  
 
		 
 
		 , although I managed to get around it meself. Only a slight difference in code methinks
, although I managed to get around it meself. Only a slight difference in code methinks