| 39 | } |
| 40 | |
| 41 | SocketTimer *SocketTimerArrayGetSocketTimer( |
| 42 | SocketTimer *const array_of_socket_timers, |
| 43 | const size_t array_length, |
| 44 | const int socket) { |
| 45 | for (size_t i = 0; i < array_length; ++i) { |
| 46 | if (socket == array_of_socket_timers[i].socket) { |
| 47 | return &array_of_socket_timers[i]; |
| 48 | } |
| 49 | } |
| 50 | return NULL; |
| 51 | } |
| 52 | |
| 53 | SocketTimer *SocketTimerArrayGetEmptySocketTimer( |
| 54 | SocketTimer *const array_of_socket_timers, |
no outgoing calls
no test coverage detected