Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: minor change to examples for consistency

...

Code Block
bgColor#FFcccc
langc
void func(signed long s_a, signed long s_b) {
  signed long result;
  if ((s_b == 0) {
    /* Handle error */
  } else {
    signed long result = s_a / s_b;
  }
  /* ... */
}

...

Code Block
bgColor#FFcccc
langc
#include <limits.h>

void func(signed long s_a, signed long s_b) {
  signed long result;
  if (s_b == 0) {
    /* Handle error */
  } else {
    signed long result result = s_a % s_b;
  }
  /* ... */
}

...