, 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
.
--
+--| 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
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
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
,
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
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
://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
+
| 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
-| 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
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
-| 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
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
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
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
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
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
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
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
\ 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
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
! 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
/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
: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
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
\ 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
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
?
--
+-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
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
:
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
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
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
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
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.
--
+---| 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
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
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
--
+---| 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
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
\ 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
; /* 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
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
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
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
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
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 |
| 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
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 |
+
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
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
49 matches
Mail list logo