コード例 #1
0
ファイル: bits.c プロジェクト: tectrendz/p
/* Driver function to test above function */
int main()
{
    unsigned int x = 0xf0000000;
    char ch, *chp, **chpp, ***chppp, ****chpppp;
     
    printf("Size of int is %ld\n", sizeof(x)); 
    printf("%x\n", reverseBits(x));
    chp = &ch;
    chpp = &chp;
    chppp = &chpp;
    chpppp = &chppp;
    foo (chp, chpp, chpp, chppp);
    arr_size();
    test_operator();
    return 1;
}
コード例 #2
0
ファイル: string_test.cpp プロジェクト: otrempe/watchman
int main(int, char**) {
  plan_tests(69);
  test_integrals();
  test_strings();
  test_pointers();
  test_double();
  test_concat();
  test_suffix();
  test_to();
  test_path_cat();
  test_basename_dirname();
  test_operator();
  test_split();

  return exit_status();
}