lately im not writing much, not because i don't have much to write about but because im writing a lot at work :P
This time im coming with a old style code, that i bet a lot of you hate.
C
In the next snippet you will see how to define a function inside a struct.
Personally i love to write code in C, not because it is a very productive language, because it isn't, but because it's always a challenge, you have to care about so much things, and you need to know so much about the computer and operative system internals, that every time you write some code in C you learn something new. Hope this snippet was helpful. See you soon ;)
Reference: http://www.cprogramming.com/tutorial/c/lesson1.html
Reference: http://www.cprogramming.com/tutorial/c/lesson1.html