IOhannes m zmoelnig a écrit :
Patrice Colet wrote:
Hello,
hi.
I'd like to paste s_entry.c into watchdog.c, and then handle PID with one file only, what do you think about this?
why would you?
I seemed interesting to me to have the code grouped in one commented file for a better understanding.
modular programming is about reducing the amount of duplicate code instead of increasing it. you could just link s_entry.o and watchdog.o together.
It sounds better.