You might want to let us know what the error is, we are not all mind-readers.
One thing that will cause a problem is this line near the top of create
You have assigned the value of NULL to head and are then trying to dereference it, this will probably cause your program to shut down.
Note: I didn't look any further, there may be more problems, you need to give more information.