- Code: Select all
char getFullName (const char *cname, int cindex)
{
char buffer[50]; //Create char array
sprintf(buffer,"%s.%i",cname,cindex); // attach clone index number to actor name.
return(buffer);
}
char getFullName (const char *cname, int cindex)
{
char buffer[50]; //Create char array
sprintf(buffer,"%s.%i",cname,cindex); // attach clone index number to actor name.
return(buffer);
}
char ActorName[50];
char * getFullName (const char *cname, int cindex)
{
char *buffer = ActorName;
sprintf(buffer,"%s.%i",cname,cindex);
return(buffer);
}
char*
getFullName (const char *cname, int cindex)
{
char buffer[50]; //Create char array
sprintf(buffer,"%s.%i",cname,cindex); // attach clone index number to actor name.
return(buffer);
}
Users browsing this forum: No registered users and 1 guest