4 ms·
I think I understand. Function, which could be used independently should free all used resources. If a function is very project-specific and has no purpose to
by programmernews3 11y ago
I think I understand. Function, which could be used independently should free all used resources.
If a function is very project-specific and has no purpose to being used independently it may be worth considering declaring it static, right?
- cperciva 11y ago"static" is a different concept -- that marks a function as not being used from outside of that compilation unit (aka .c file). This particular function was used from outside of that file, but was unlikely to be reused in a different project.
- deleted 11y ago[deleted]