Re: [linux-programming] multiple indirection (in C)

2007-03-04 Terurut Topik Agus Budy Wuysang
, kalau mau maksa alokasi pointer pakai stack: alloca() -- +--| Mozilla Firefox/Thunderbird 1.5.x - CentOS 4.4 |--+ | Agus Budy WuysangGSM (Mks): +62-819-423-7172 | | GSM (Mks): +62-813-42--72CDMA: +62-411-527-27-72 | +---| http

Re: [linux-programming] multiple indirection (in C)

2007-03-03 Terurut Topik Agus Budy Wuysang
. -- +--| Mozilla Firefox/Thunderbird 1.5.x - CentOS 4.4 |--+ | Agus Budy WuysangGSM (Mks): +62-819-423-7172 | | GSM (Mks): +62-813-42--72CDMA: +62-411-527-27-72 | +---| http://www.geocities.com/supeskrim

Re: [linux-programming] akses hardware klien dari program yang jalan di telnet

2007-03-03 Terurut Topik Agus Budy Wuysang
printer client lewat telnet(bukan print screen lho), gimana ya caranya? http://vtprint.sourceforge.net/ -- +--| Mozilla Firefox/Thunderbird 1.5.x - CentOS 4.4 |--+ | Agus Budy WuysangGSM (Mks): +62-819-423-7172 | | GSM (Mks): +62-813-42--72

Re: [linux-programming] multiple indirection (in C)

2007-03-02 Terurut Topik Agus Budy Wuysang
pinguin wrote: On 2/28/07, Agus Budy Wuysang [EMAIL PROTECTED] wrote: (2): Apakah para programmer C selalu menggunakan pointer 2 kali (misal **a) untuk menyimpan array 2D dan pointer 1x (misal *b) untuk menyimpan array 1D? Tidak selalu, kan bisa declare sebagai array (static pointer): int

Re: [linux-programming] multiple indirection (in C)

2007-02-27 Terurut Topik Agus Budy Wuysang
, gunakan assignment function: int **cm(int m, int n) { int **la, i; la = (int **) malloc ... for ... mm[i] = ... return la; } matrix = cm (x,y); -- +--| Mozilla Firefox/Thunderbird 1.5.x - CentOS 4.4 |--+ | Agus Budy Wuysang

Re: [linux-programming] lebih lanjut tentang grep

2006-07-22 Terurut Topik Agus Budy Wuysang
spasinya (field ke 2), saya ingin agar baris ini tidak ikut terhitung. caranya bagaimana ya ? $ grep -vc '^x, ' test.txt -- +---C-| Mozilla 1.7.x |-4-| Linux 2.6.x |-2+ | Agus Budy WuysangGSM (Mks): +62-819-423-7172 | | CDMA: +62-21-9292-7215

Re: [linux-programming] bit operation was Re: [linux-programming] file defenition

2005-11-18 Terurut Topik Agus Budy Wuysang
://ariya.pandu.org/articles/swap.htm -- +---F-| Mozilla 1.7.x |-C-| Linux 2.6.x |-2+ | Agus Budy WuysangGSM (Mks): +62-819-423-7172 | | Phone: +62-411-321016| +---| http://www.geocities.com

Re: [linux-programming] gimana cara delete file dr tanggal...

2005-04-17 Terurut Topik Agus Budy Wuysang
+ | Agus Budy WuysangGSM (Mks): +62-819-423-7172 | | Phone: +62-411-321016GSM (Jkt): +62-816-1972-051 | +---| http://www.geocities.com/supeskrim/ |+ -- Berhenti langganan: [EMAIL PROTECTED] Arsip dan info: http://linux.or.id

Re: [linux-programming] menampilkan data

2005-03-02 Terurut Topik Agus Budy Wuysang
-| Mozilla 1.7.x |-C-| Linux 2.6.x |-2+ | Agus Budy Wuysang Mobile: +62-819-423-7172 | | Phone: +62-411-321016 Mobile: +62-816-1972-051 | +---| http://www.geocities.com/supeskrim/ |+ -- Berhenti langganan: [EMAIL

Re: [linux-programming] Remote Dos

2005-03-01 Terurut Topik Agus Budy Wuysang
xdos kalau dari X? -- +---F-| Mozilla 1.7.x |-C-| Linux 2.6.x |-2+ | Agus Budy Wuysang Mobile: +62-819-423-7172 | | Phone: +62-411-321016 Mobile: +62-816-1972-051 | +---| http://www.geocities.com/supeskrim

Re: [linux-programming] menampilkan data

2005-03-01 Terurut Topik Agus Budy Wuysang
-| Mozilla 1.7.x |-C-| Linux 2.6.x |-2+ | Agus Budy Wuysang Mobile: +62-819-423-7172 | | Phone: +62-411-321016 Mobile: +62-816-1972-051 | +---| http://www.geocities.com/supeskrim/ |+ -- Berhenti langganan

Re: [linux-programming] Hello...

2005-01-11 Terurut Topik Agus Budy Wuysang
mungkin di Linux ada fasilitas yang bisa lebih membantu. $ man 3 syslog ... dengan asumsi kejadian penting = menyangkut system, kalau sekedar debugging program, lihat saran Pak Ivo Setyadi. -- +-F-| Mozilla 1.7 Gecko20040922 |-C-| Powered by Linux 2.6.x |-2-+ | Agus Budy Wuysang Mobile

Re: [linux-programming] Hello...

2005-01-10 Terurut Topik Agus Budy Wuysang
1.7 Gecko20040922 |-C-| Powered by Linux 2.6.x |-2-+ | Agus Budy Wuysang Mobile: +62-819-423-7172 | | Phone: +62-411-321016 Mobile: +62-816-1972-051 | +---| http://supes.agreatserver.com/ |---+ -- Berhenti langganan: [EMAIL PROTECTED] Arsip

Re: [linux-programming] Lowe case...recursi

2004-07-17 Terurut Topik Agus Budy Wuysang
ada nama file yang dimulai dengan '-', scriptnya bisa break karena dianggap option switch... mv ${mv_opts} -- $old $new Terutama buat kolektor ogg mp3 files... -- +-R-| Mozilla 1.6 Gecko20040116 |-H-| Powered by Linux 2.4.x |-9-+ | Agus Budy Wuysang

Re: [linux-programming] little endian = big endian

2004-06-23 Terurut Topik Agus Budy Wuysang
statement sbb: printf(%I64d, variable); man 3 printf - printf(%lld %llu\n, LL, uLL); -- +-R-| Mozilla 1.6 Gecko20040116 |-H-| Powered by Linux 2.4.x |-9-+ |/v\ Agus Budy WuysangMIS Department | | | Phone: +62-21-344-1316 ext 317Mobile: +62-816-1972-051

Re: [linux-programming] argc dan argv

2004-01-06 Terurut Topik Agus Budy Wuysang
program yang akan diexecute: int main(int argc, char *argv[], char *envp[]) bisa diabaikan kalau tidak dipakai: int main(void) int main(int argc) int main(int argc, char *argv[]) Penjelasannya: man 2 execve -- +-R-| Mozilla 1.5 Gecko20031016 |-H-| Powered by Linux 2.4.x |-9-+ |/v\ Agus Budy Wuysang

Re: [linux-programming] membandingkan isi 2 file

2003-09-26 Terurut Topik Agus Budy Wuysang
beda dia kasih tau bedanya di mana (at least utk file text, bukan binary). cmp bisa keduanya handle binary :) -- +-R-| Mozilla 1.4 Gecko20030703 |-H-| Powered by Linux 2.4.x |-7-+ |/v\ Agus Budy Wuysang MIS Department | | | Phone: +62-21-344-1316 ext 317 GSM: +62-816

Re: [programming] bash script + utility

2002-11-27 Terurut Topik Agus Budy Wuysang
done data-file.ascii -- +-R-| Mozilla 1.0.1 Gecko/2002 |-H-| Powered by Linux 2.4.x |-7-+ |/v\ Agus Budy Wuysang MIS Department | | | Phone: +62-21-344-1316 ext 317 GSM: +62-816-1972-051 | +| http://www.fasw.co.id/person/supes

Re: [programming] Mencegah concurrent login

2002-11-08 Terurut Topik Agus Budy Wuysang
\ Agus Budy Wuysang MIS Department | | | Phone: +62-21-344-1316 ext 317 GSM: +62-816-1972-051 | +| http://www.fasw.co.id/person/supes/ |-+ -- Utk berhenti langganan, kirim email ke [EMAIL PROTECTED] Informasi arsip di http://www.linux.or.id

Re: [programming] c on linux help

2002-09-26 Terurut Topik Agus Budy Wuysang
tertentu ? printf misalnya. Kalau anda pakai Vim bisa pakai 'K' (shift-k), command mode saat posisi cursor di kata/function name. -- +-R-| Mozilla 1.1! Gecko/200208 |-H-| Powered by Linux 2.4.x |-7-+ |/v\ Agus Budy Wuysang MIS Department | | | Phone: +62-21-344-1316

Re: [programming] Read Keyboard di Bash

2002-06-11 Terurut Topik Agus Budy Wuysang
! Gecko/200206 |-H-| Powered by Linux 2.4.x |-7-+ |/v\ Agus Budy Wuysang MIS Department | | | Phone: +62-21-344-1316 ext 317 GSM: +62-856-1072-847 | +| http://www.fasw.co.id/person/supes/ |-+ -- Utk berhenti langganan, kirim email ke [EMAIL

Re: [programming] program hapus isi file

2002-06-05 Terurut Topik Agus Budy Wuysang
/kata_tertentu//g' infile outfile Kalau mau reinvent the wheel, silakan periksa source code masing2 prog di atas. -- +-R-| Mozilla 1.0rc3 Gecko/2002 |-H-| Powered by Linux 2.4.x |-7-+ |/v\ Agus Budy Wuysang MIS Department | | | Phone: +62-21-344-1316 ext 317 GSM: +62-856

Re: [programming] convert GMT ke local timezone

2002-05-28 Terurut Topik Agus Budy Wuysang
:1 Month :0 Year :70 Kok ngaco gitu yah? -- +-R-| Netscape Communicator 4.x |-H-| Powered by Linux 2.4.x |-7-+ |/v\ Agus Budy Wuysang MIS Department | | | Phone: +62-21-344-1316 ext 317 GSM: +62-856-1072-847 | +| http://www.fasw.co.id/person

Re: [programming] seteuid dan fork

2002-05-17 Terurut Topik Agus Budy Wuysang
2, since bash 2 drops privileges ~~ on startup. (Debian uses a modified bash which does not ~~~ do this when invoked as sh.) ... -- +-R-| Netscape Communicator 4.x |-H-| Powered by Linux 2.4.x |-7-+ |/v\ Agus Budy Wuysang

Re: [programming] instruksi CLRSCR pada C

2001-08-14 Terurut Topik Agus Budy Wuysang
\ 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

Re: [programming] list akses paralel port di Linux

2001-08-09 Terurut Topik Agus Budy Wuysang
low level, coba baca ioctl lihat2 source code linux; driver untuk paraport. -- +-R-| Netscape Communicator 4.x |-H-| Powered by Linux 2.4.x |-7-+ |/v\ Agus Budy Wuysang MIS Department | | | Phone: +62-21-344-1316 ext 317 GSM: +62-816-1972-051 | +| http

Re: [programming] tanya map nya STL dong

2001-08-01 Terurut Topik Agus Budy Wuysang
? -- +-R-| Netscape Communicator 4.x |-H-| Powered by Linux 2.4.x |-7-+ |/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

Re: [programming] gcc

2001-07-21 Terurut Topik Agus Budy Wuysang
Samuel Prakoso wrote: Apakah ada yang tahu dimana mencari editor khusus untuk gcc? vi + ctags ? :gcc -- +-R-| Netscape Communicator 4.x |-H-| Powered by Linux 2.4.x |-7-+ |/v\ Agus Budy Wuysang MIS Department | | | Phone: +62-21-344-1316 ext 317 GSM: +62

Re: [programming] ambil baris,...

2001-03-05 Terurut Topik Agus Budy Wuysang
: head -50 file.teks | tail -1 -- +---| 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

Re: [programming] pendeklarasian parameter

2000-11-11 Terurut Topik Agus Budy Wuysang
unction1(x, str); seharusnya tidak error... kompile, tetapi ke function kedua (yg katanya Traditional C), tdk error kompile kenapa demikian? -- +---| Netscape Communicator 4.x |---| Powered by Linux 2.2.x |---+ |/v\ Agus Budy Wuysang MIS Department | | | Phone: +62-2

Re: [programming] Command Line Argument for C

2000-11-09 Terurut Topik Agus Budy Wuysang
Benny Prijono wrote: Agus Budy Wuysang wrote: mmm, itu "constant string" apa maksudnya bukan 'const char *s[]' dan s[] == *s == constant pointer == array of char s == normal double pointer != constant $ cdecl explain 'const char *argv[]' declare argv as array

Re: [programming] Command Line Argument for C

2000-11-09 Terurut Topik Agus Budy Wuysang
Oops ketinggalan :) coba anda lihat man 2 execve yang mana merupakan 'first entry point execution semua executable' di Linux -- +---| Netscape Communicator 4.x |---| Powered by Linux 2.2.x |---+ |/v\ Agus Budy Wuysang MIS Department | | | Phone: +62-21-344-1316 ext

Re: [programming] Command Line Argument for C

2000-11-05 Terurut Topik Agus Budy Wuysang
meminta inputan file yang akan dicompile Expl. gcc file.c Kalo ada mohon petunjuknya donk, soalnya aku perlu nich untuk teleneting dengan hanya 1 command line sending, jadi 1 line itu isinya termasuk inputan buat programnya. -- +---| Netscape Communicator 4.x |---| Powered by Linux 2.2.

Re: [programming] keypressed di linux

2000-11-01 Terurut Topik Agus Budy Wuysang
-- +---| 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

Re: [programming] call by reference di c for linux

2000-10-24 Terurut Topik Agus Budy Wuysang
da prinsipnya: coba = strdup("teststring"); coba3 = ("teststring"); -- +---| 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-81

Re: [programming] call by reference di c for linux

2000-10-19 Terurut Topik Agus Budy Wuysang
Andy wrote: On Thu, Oct 19, 2000 at 11:08:22AM +0700, Agus Budy Wuysang wrote: 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

Re: [programming] call by reference di c for linux

2000-10-19 Terurut Topik Agus Budy Wuysang
-- +---| 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/us

Re: [programming] call by reference di c for linux

2000-10-19 Terurut Topik Agus Budy Wuysang
Yohanes Nugroho wrote: On Thu, 19 Oct 2000, Agus Budy Wuysang wrote: artinya compiler akan menyediakan suatu tempat dimemori (dan tidak ada ^ jaminan bahwa lokasinya dapat ditulisi) yang berisi string tersebut

Re: [programming] mau tanya tentang fungsi delay

2000-10-06 Terurut Topik Agus Budy Wuysang
\ 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

Re: [programming] aku mau tanya tentang PID

2000-08-29 Terurut Topik Agus Budy Wuysang
; /* legal */ a = p; /* illegal */ contoh function: #include unistd.h int main(void) { int (*f)(), (*g)(); f = sync; /* man 2 syscall */ sync = g; /* illegal */ f(); return 0; } -- +---| Netscape Communicator 4.x |---| Powered by Linux 2.2.x |---+ |/v\ Agus Budy Wuysang

Re: [programming] Shared Memory

2000-07-27 Terurut Topik Agus Budy Wuysang
shmparam.h -- +---| 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/person

Re: [programming] Makefile

2000-07-01 Terurut Topik Agus Budy Wuysang
1.so.x.y.z tersebut ada di disana. -- +---| 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/person

Re: [programming] Date Time

2000-04-20 Terurut Topik Agus Budy Wuysang
top="`date +%s`" elapsed="$[$stop - $start]" # in seconds # formatting selanjutnya terserah anda :) -- +---| Netscape Communicator 4.x |---| Powered by Linux 2.2.x |---+ |/v\ Agus Budy Wuysang MIS Department | | | Phone: +62-21-344-1316 ext

Re: [programming] Script cari random untuk undian

1999-12-16 Terurut Topik Agus Budy Wuysang
ngrepotin. -- snip --- -- +---| 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/person

Re: [programming] Locate output.!

1999-08-30 Terurut Topik Agus Budy Wuysang
anda, tapi shell/interpreter. -- +---| 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 |

Re: [programming] biar mpg123 jalan mulus?

1999-08-10 Terurut Topik Agus Budy Wuysang
| 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 |+ -BEGIN GEEK CODE BLOCK- Versio

Re: [programming] biar mpg123 jalan mulus?

1999-08-06 Terurut Topik Agus Budy Wuysang
10), kalau masih terganggu coba 1024 atau 2048... Kernel Linux standard bukan RT... -- +---| 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 | +

Re: [programming] truecolor, 16 bpp

1999-06-22 Terurut Topik Agus Budy Wuysang
masih tergantung X x Y pixel resolution dengan asumsi 1 warna per 1 pixel... -- +---| 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

Re: [programming] dll di linux

1999-05-24 Terurut Topik Agus Budy Wuysang
in lagi :) -- +---| 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 |+ -BEGIN GEEK CODE BLO