関数一覧

「関数一覧」の編集履歴(バックアップ)一覧に戻る

関数一覧 - (2011/04/11 (月) 22:25:41) の編集履歴(バックアップ)


  • インクルード
<cstdio>
<direct.h>
<errno.h>
<fcntl.h>
<io.h>
<iostream>
<stdio.h>
<string.h>
  • 名前空間
using namespace std;
int as::open_or_die( const string in_filename, int in_openflag, int in_permissionmode = 0 ) {
int ret = _open( in_filename.c_str(), in_openflag, in_permissionmode );
if( ret == -1) {
	fprintf( stderr, "Could not open %s (%s)\n", in_filename.c_str(), strerror(errno) );
	exit( -1 );
}
return ret;
}
void as::write_file( const string filename, unsigned char* buff, unsigned long len ) {
int fd = open_or_die( filename, O_BINARY | O_CREAT | O_TRUNC | O_WRONLY, O_CREAT | O_NOINHERIT );
_write( fd, buff, len );
_close( fd );
}
string as::get_file_prefix(const string in_filename)
不明 as::unlzss(unsigned char *buff, unsigned long len, unsigned char *&out_buff, unsigned long &out_len)


名前:
コメント:
ツールボックス

下から選んでください:

新しいページを作成する
ヘルプ / FAQ もご覧ください。