exercises/ex04/trout/trout.c
void sub_tv (Timeval *plus, Timeval *minus, Timeval *res)
{
  res->tv_sec = plus->tv_sec - minus->tv_sec;
  res->tv_usec = plus->tv_usec - minus->tv_usec;

  if (res->tv_usec < 0) {
    res->tv_sec--;
    res->tv_usec += 1000000;
  }
}
/* sub_tv: subtract minus from plus and put the result in res */
subtract minus from plus and put the result in res
subtract minus from plus and put the result in res
void sub_tv (Timeval *plus, Timeval *minus, Timeval *res)
{
  res->tv_sec = plus->tv_sec - minus->tv_sec;
  res->tv_usec = plus->tv_usec - minus->tv_usec;
  if (res->tv_usec < 0) {
    res->tv_sec--;
    res->tv_usec += 1000000;
  }
}
void sub_tv ( Timeval * plus , Timeval * minus , Timeval * res ) { res -> tv_sec = plus -> tv_sec - minus -> tv_sec ; res -> tv_usec = plus -> tv_usec - minus -> tv_usec ; if ( res -> tv_usec < 0 ) { res -> tv_sec -- ; res -> tv_usec += 1000000 ; } }
sub_tv: subtract minus from plus and put the result in res
sub_tv : subtract minus from plus and put the result in res