hi, i having trouble writing source code in micro c. i found few examples but it never works. so i need helps. the project im doing is data logging using sd card and microcontroller..

Try to imagine that we can't see your monitor from here, and that we have no idea what "micro c" or "microcontroller" actually means to you.

There are 100's of variations, so if you want a specific answer (and not vague guesses), then you need to be more specific.

- which compiler and version
- which microcontroller
- some actual code
- some actual error messages and/or observations.

"I tried stuff and it didn't work" just doesn't cut it.
You wouldn't go to a doctor and let him start wielding a scalpel just on your simple diagnosis of "it hurts somewhere".