I have tried a few different things to get this to work but basically I have a name that is 6 letters long (maximum) and I need to input it into the char* car in place of the '-'. For example if the name was Bob the car should look like ~O=Bob----o>
typedef struct Racer_S {
int row; ///< vertical row or "racing lane" of a racer
int distance; ///< column of rear of car, marking its position in race
char *graphic; ///< graphic is the drawable text of the racer figure
} Racer;
Racer * make_racer( char *name, int row ){
Racer *newRacer;
char *car = "~O=-------o>";
for (int i = 0; i < strlen(name); ++i)
car[i+3] = name[i];
// printf("%s\n",car);
// newRacer->row = row;
// newRacer->distance = 0;
// newRacer->graphic = car;
return newRacer;
}