This is an old revision of the document!


#define ABS(x) (((x) < 0) ? -(x) : (x)) /* UNSAFE */
  
void func(int n) {
  /* Validate that n is within the desired range */
  ++n;
  int m = ABS(n);
 
  /* ... */
}
  • sei_cert_c_coding_standard.1565125389.txt.gz
  • Last modified: 2019/08/06 21:03
  • by rpjday