I'm learning C at the moment and have just covered structs. It seems like structs can only have members but no methods restricted to a given struct. Suppose I want to write an add method for a linked list.
In Java, I'd make a linked list class and write a method within that class:
public void add(Node toAdd) {...}
In C, I can write a function that takes in a linked list or a pointer to a linked list and modifies it by adding a node. But is there any way to do this more similarly to how Java does it?
I'm worried I'm going to have a massive file of functions with little organization otherwise...or is this just a pain of C and something that Obj-C improves upon?