03 2013 档案

摘要:/* * ===================================================================================== * * Filename: unpack.c * * Description: 仅作为代码分享,... 阅读全文
posted @ 2013-03-29 03:51 scue 阅读(792) 评论(0) 推荐(0) 编辑
摘要:/* * ===================================================================================== * * Filename: szbtool.c * * Description: 联想手机szb... 阅读全文
posted @ 2013-03-28 22:01 scue 阅读(1168) 评论(1) 推荐(1) 编辑
摘要:fseek( fd, 8192 , SEEK_SET); /* 跳转至数据段 */ //开始解压数据; int size,n; char image_name[32]=""; for( i=0; i < imagecount ; i++ ){ size = images[i].imagesize; /* 获取镜像的大小 */ unsigned char buffer[size]; /* 创建缓冲区 */ strncpy(image_name,i... 阅读全文
posted @ 2013-03-27 12:12 scue 阅读(288) 评论(0) 推荐(0) 编辑
摘要:struct tm *ptr; time_t lt; unsigned int times=<秒数时间变量>; char str[80]; lt=times; ptr=localtime(&lt); strftime(str,100,"%F %X",ptr);摘抄来的,来源忘记了。。。 阅读全文
posted @ 2013-03-27 07:39 scue 阅读(2793) 评论(1) 推荐(0) 编辑
摘要:#define BUFFER_SIZE 1024//合并文件mergeFile (infile1, infile2, filenmae)void mergeFile(FILE *fp1,FILE *fp2,char *name){ FILE *fd1,*fd2,*fp3; unsigned char buf[BUFFER_SIZE]; char filename[100]; strncpy(filename,name,sizeof(filename)); int rc1,rc2; fd1 = fopen(fp1,"rb"); fd2 = fopen(f... 阅读全文
posted @ 2013-03-27 07:35 scue 阅读(3015) 评论(0) 推荐(0) 编辑
摘要:珍藏...#define BUFFER_SIZE 1024//在尾部补零void appendZeros(FILE *fp, int size){ FILE *fd; unsigned int buffer[size]; strncpy(buffer,"",sizeof(buffer)); if ( ( fd=fopen(fp,"a+") ) == NULL ){ printf ( "在补零时,打开目标文件失败!\n" ); exit(1); } if ( size != 0 ){ fwrite(buffer, 1 ... 阅读全文
posted @ 2013-03-27 00:57 scue 阅读(808) 评论(0) 推荐(0) 编辑
摘要:#!/bin/bash - #===============================================================================## FILE: ~/bin/apkdump# # USAGE: apkdump# # DESCRIPTION: # # OPTIONS: ---# REQUIREMENTS: ---# BUGS: ---# NOTES: ---# AUTHOR: linkscue (scue), linkscue@gmail... 阅读全文
posted @ 2013-03-17 15:32 scue 阅读(265) 评论(0) 推荐(0) 编辑
摘要:1. envsetup . build/envsetup.sh2. stockrom(will error) cd <here> ../tools/releasetools/ota_target_from_phone -r3. deodex ../tools/deodex.sh $(pwd)/out/target_files.zip4. stockrom(it's ok) TOOL_DIR=$PORT_ROOT/tools echo $OTA_FROM_TARGET_FILES OTA_FROM_TARGET_FILES=$TOOL_DIR/rele... 阅读全文
posted @ 2013-03-10 03:04 scue 阅读(544) 评论(0) 推荐(0) 编辑
摘要:1 #!/bin/bash - 2 #=============================================================================== 3 # 4 # FILE: conv.sh 5 # 6 # ... 阅读全文
posted @ 2013-03-07 01:44 scue 阅读(6045) 评论(0) 推荐(0) 编辑
摘要:GCC(1) GNU GCC(1)NAME gcc - GNU project C and C++ compilerSYNOPSIS gcc [-c|-S|-E] [-std=standard] [-g] [-pg] [-Olevel] [-Wwarn...] [-pedantic] ... 阅读全文
posted @ 2013-03-06 22:01 scue 阅读(12112) 评论(0) 推荐(0) 编辑
摘要:-- bash help ------------------------------------------ \hb Displays the Bash manual (n, i) \hh Displays help for the builti... 阅读全文
posted @ 2013-03-04 18:48 scue 阅读(1660) 评论(0) 推荐(0) 编辑
摘要:$ sudo apt-get install cscope$ cscope --help$ Usage: cscope [-bcCdehklLqRTuUvV] [-f file] [-F file] [-i file] [-I dir] [-s dir] [-p number] [-P path] [-[0-8] pattern] [source files]-b Build the cross-reference only.-C Ignore letter case when searching.-c ... 阅读全文
posted @ 2013-03-04 14:27 scue 阅读(1970) 评论(0) 推荐(0) 编辑
摘要:style "gtkcompact" {font_name="Ubuntu 9"GtkButton::default_border={0,0,0,0}GtkButton::default_outside_border={0,0,0,0}GtkButtonBox::child_min_width=0GtkButtonBox::child_min_heigth=0GtkButtonBox::child_internal_pad_x=0GtkButtonBox::child_internal_pad_y=0GtkMenu::vertical-padding=1 阅读全文
posted @ 2013-03-03 21:35 scue 阅读(1255) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示