[prog] C++ Problem

Kathryn Hogg kjh at flyballdogs.com
Sun Apr 6 01:03:37 EST 2003



> void InitialiseVehicle (Vehicle *a, char name[20])
> {
>         a->vehicle_name, name;

should this not be strncpy(a->vehicle_name, name, 19);
                   a->vehicle_name[19] = 0;

>

-- 
Kathryn


More information about the Programming mailing list