[合集] C里面return 1代表失败,return 0代表成功,对么?# Programming - 葵花宝典
c*d
1 楼
☆─────────────────────────────────────☆
pxu (Lingua Franca) 于 (Wed Dec 6 15:53:35 2006) 提到:
哦买嘎
☆─────────────────────────────────────☆
thrust (Thrust Jaeina) 于 (Wed Dec 6 15:56:26 2006) 提到:
different library use different convention. for unix system calls, 0=success, yes.
but error usually return <0. for libc, most probably not.
☆─────────────────────────────────────☆
Deling (流浪歌手-安全着陆) 于 (Wed Dec 6 16:01:42 2006) 提到:
this is a typical abuse of integer, that's why I hate C so
pxu (Lingua Franca) 于 (Wed Dec 6 15:53:35 2006) 提到:
哦买嘎
☆─────────────────────────────────────☆
thrust (Thrust Jaeina) 于 (Wed Dec 6 15:56:26 2006) 提到:
different library use different convention. for unix system calls, 0=success, yes.
but error usually return <0. for libc, most probably not.
☆─────────────────────────────────────☆
Deling (流浪歌手-安全着陆) 于 (Wed Dec 6 16:01:42 2006) 提到:
this is a typical abuse of integer, that's why I hate C so