Rookie worker

菜鳥工程師的學習心得筆記

2021年1月11日 星期一

C語言 - 字串反轉

›
void reverse(char str[]){ int i=0,j=0; while(str[i]!='\0'){ i++; } printf("轉換後的字串: "); for(j=i-1;j>=0;j--)...
2016年10月7日 星期五

32位元位址移到64位元環境造成死機怎修正

›
簡易改法 把原本定義成32位元的位址空間 改用intptr_t Why? stdint.h 內定義了 intptr_t 這個type 當你需要把pointer 轉型成 integer 的時候 你不確定是32 or 64bit 就可以使用intptr_t if偵...
2015年8月4日 星期二

何謂簽章?

›
數位簽章原理[1] 可配合下面的圖來看 簽章基本原理是這是建立於PKI (Public Key Infrastructure)的環境 關於PKI可以看這個網頁的基本介紹:  http://www.synnex.com.tw/asp/fae_qaDetail...
2015年6月9日 星期二

C語言 - how to check big or little endian

›
Q: big endian vs little endian, how to check ? sample code: int main(void) {     short int a = 0x1234;     char *p = (char *)&a; ...

C語言 - sizeof(), strlen()

›
static void tim_test(void) {     char str1[]="12345\n";     char *p1=str1;     UINT8 a,b,c,d,e;     a=sizeof(str1);     b...

C語言 - printf str pointer

›
void tim_test_str_printf(void) {     char *str = "abcde";     libc_printf("%s(): str = %s, *str=%c \n",__FUNCTI...
2014年3月22日 星期六

secure coding

›
最近公司在推行這個,雖然很煩瑣,但其實有些不錯又常常忽略導致埋下不定時炸彈小地方值得注意. 整理好來分享下好了
›
首頁
查看網路版

About me

我的相片
pantene
台北, Taiwan
靠張嘴就能賺錢....是我的夢想!
檢視我的完整簡介
技術提供:Blogger.