- Nov 01 Thu 2012 16:23
C - popen()
- Nov 01 Thu 2012 16:13
Solaris - svcs command
- Nov 01 Thu 2012 11:48
C/Cpp : memset()
memset ( void * ptr, int value, size_t num ) , 可以讓我們對pointer所指向的一個記憶體空間塞入資料 ,
在memset中主要有三個參數 , 分別是:
- ptr : Pointer to the block of memory to fill.
- value : Value to be set. The value is passed as an int, but the function fills the block of memory using the unsigned char conversion of this value.
- num : Number of bytes to be set to the value.
- for example :
#include <stdio.h>
#include <string.h>
int main ()
{
char str[] = "almost every programmer should know memset!";
memset (str,'-',6);
puts (str);
return 0;
}
- 我們可以看到memset幫我們在str所指向的記憶體空間中塞入了6個'-' .
- Nov 01 Thu 2012 11:39
linux - expect scripting language
- Oct 31 Wed 2012 20:00
Javascript - 判斷一個string是否為數字
Number()
- Oct 31 Wed 2012 13:13
Eclipse - 變更CVS address
- Oct 30 Tue 2012 17:17
Computer - SMART technology
- Oct 30 Tue 2012 14:39
Computer - BIOS
- Oct 30 Tue 2012 14:07
linux - login information
- Oct 29 Mon 2012 10:20
Javascript - Mouse Event
- Oct 24 Wed 2012 17:04
Javascript - regular expression - g modifier
在regular expression中 , 我們可以藉由g modifier來決定是否進行global match ,
(也就是match所有符合的部分 , 而非只停留在第一個)
- Oct 22 Mon 2012 14:22
Linux - redirect
- Oct 19 Fri 2012 16:08
javascript:Jquery - .bind()
在Javascript中 , 我們若想在某一個event 被trigger時 , 讓某一個function也同時進行處理 ,
我們可以藉由Jquery所提供的bind() method:
- Oct 19 Fri 2012 16:01
Html_CSS - Display property
- Oct 19 Fri 2012 10:33
Javascript:Array - sort
在Javascript的Array object中 , 提供了一個sort method來幫我們對Array進行sort的動作:
jsonMgmt.sort(function(a , b)
- Oct 19 Fri 2012 10:28
Javascript - 判斷字串中是否含有某個substring
- Oct 19 Fri 2012 10:21
Javascript - Array:push method
- Oct 17 Wed 2012 16:50
python - command line arguments
- Oct 17 Wed 2012 13:48
python - splitlines()
- Oct 17 Wed 2012 13:35
python - strip()