programming emergency

I'm sure the C language could have included a function called addCodeForMotors() but the designers cruelly omitted it to make things hard for you.

For anyone to help you we need some details like what do you expect these (unspecified) motors to do? And a whole lot more.