関数一覧

  • インクルード
<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::make_path(const string filename) {
for( unsigned int offset = filename.find( "/", 0 ); offset != string::npos; offset = filename.find( "/", offset ) ) {
	string path = filename.substr( 0, offset );
	_mkdir( path.c_str() );
	offset++;
}
}
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)


名前:
コメント:

タグ:

+ タグ編集
  • タグ:

このサイトはreCAPTCHAによって保護されており、Googleの プライバシーポリシー利用規約 が適用されます。

最終更新:2011年04月12日 01:06
ツールボックス

下から選んでください:

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