Обсуждение: [Q] exit(0) in C examples

Поиск
Список
Период
Сортировка

[Q] exit(0) in C examples

От
"Park, Chul-Su"
Дата:
Hello all,

    I asked many times in other mailing lists, but nobody seems to
reply(or is this kind of question is already mentioned elsewhere?  it is
very hard to find something in mail archieves on PostgreSQL site)...

    Does anybody know WHY all examples(in C) end with "exit(0)" not
return 0 ?  when I tried large object examples(testlo.c or c++
examples), it always segfaulted! if I comment out exit(0) on redhat 5.0
linux.  memory leak or some bugs?

Best Regards, C.S.Park