This commit is contained in:
Maryna Kravtsova 2020-11-02 15:39:29 +01:00
parent 082b004021
commit 5202a7ff7f

View File

@ -6,10 +6,12 @@
#include "a_train.h"
struct car* add_car(struct car* first,const char* target) {
struct car* newcar = calloc(1, sizeof(struct car));
if(target == NULL){
return 0;
}
struct car* newcar = calloc(1, sizeof(struct car));
if(first == NULL){
return newcar;
}