Benny Prijono wrote: > > Yohanes Nugroho wrote: > > > > On Wed, 18 Oct 2000, Andy wrote: > > > > > yah betul mas, saya coba ubah & ke * langsung jalan tapi akibatnya > > > segmentation fault > > > > > > char * coba = "teststring"; > > ganti baris di atas dg > > > > char coba[] = "teststring"; > > > > tambahan: itu xorz[] kok besarnya cumak 9, padahal input "teststring" > membutuhkan 10 elemen xorz... si andy tidak memakai konstruk "coba++" jadi kalam konteksnya tak ada beda... note: local char pointer ie. &strz != &coba while (++*strz) stop saat *strz = '\0' (strlen(strz) = 9) i=0...8 padahal xorz = char[8] -> (i=0...7) = overflow -- +---| Netscape Communicator 4.x |---| Powered by Linux 2.2.x |---+ |/v\ Agus Budy Wuysang MIS Department | | | Phone: +62-21-344-1316 ext 317 GSM: +62-816-1972-051 | +--------| http://www.rad.net.id/users/personal/s/supes |--------+ -------------------------------------------------------------------------------- Utk berhenti langganan, kirim email ke [EMAIL PROTECTED] Informasi arsip di http://www.linux.or.id/milis.php3 Pengelola dapat dihubungi lewat [EMAIL PROTECTED]
- [programming] call by reference di c for linux Andy
- RE: [programming] call by reference di c for linux commedo
- Re: [programming] call by reference di c for linux mastri
- Re: [programming] call by reference di c for linux Andy
- Re: [programming] call by reference di c for linux Yohanes Nugroho
- Re: [programming] call by reference di c for linux Benny Prijono
- RE: [programming] call by reference di c for linux Sumantri Adiaksana
- Re: [programming] call by reference di c for linux Oki DZ
- Re: [programming] call by reference di c for linux Agus Budy Wuysang
- Re: [programming] call by reference di c for linux Yohanes Nugroho
- Re: [programming] call by reference di c for linux Andy
- Re: [programming] call by reference di c for linux Andy
- Re: [programming] call by reference di c for l... Ronny Haryanto
- Re: [programming] call by reference di c for linux Yohanes Nugroho
- Re: [programming] call by reference di c for linux Yohanes Nugroho
- Re: [programming] call by reference di c for l... Danny Setiawan
- Re: [programming] call by reference di c for linux Benny Prijono
- Re: [programming] call by reference di c for l... Agus Budy Wuysang
- Re: [programming] call by reference di c for linux Agus Budy Wuysang
