易截截图软件、单文件、免安装、纯绿色、仅160KB

linux c 下的文件操作

在linux c 下是否能够使用fopen 和fclose 两个函数打开文件?为什么我使用fopen是程序出现“core dump”的错误,而使用open却可以成功。因为我接下来的工作用fopen比较方便,所以请高手指教。
还有是不是所有vc下的c函数都能够在linux c下使用?
linux下当然可以使用fopen和fclose,你出错的程序贴上来看看?

1. 确认是 fopen就错了,还是之后,比如open一个不存在的文件,然后fread就会错
2. 确认是否是应用程序,在驱动里不能用fopen

linux c 下是能够使用fopen 和fclose 两个函数打开文件, 出现错误, 查一下参数有没有对.

还有是不是所有vc下的c函数都能够在linux c下使用?

ANSI C 的库函数都能够在 Linux下使用.



#include <stdio.h>

FILE *fopen(const char *path, const char *mode);

The argument mode points to a string beginning with one of the following sequences (Additional  characters  may follow these sequences.):

      r      Open text file for reading.  The stream is positioned at the beginning of the file.

      r+    Open for reading and writing.  The stream is positioned at the beginning of the file.

      w      Truncate file to zero length or create text file for writing.  The stream is positioned at the beginning of the file.

      w+    Open for reading and writing.  The file is cr


相关问答:

为什么C写DLL文件C、PB能调用VB不能调用

为什么C写的DLL文件C、PB能调用VB不能调用?
VB里为什么有的DLL直接通过引用可以使用?有的需要通过declare申明外部函数?这些DLL有什么差别?

1、为什么PB能通过DECLARE声明而VB不行?
2、如果这个dll中的 ......

C 程序问题 (二) - C/C++ / C语言

问一下:
#include <stdio.h>
int main()
{
  char x, y, z;
  int i;
  int a[16];
  for(i=0; i<=16; i++)
  {
  a[i] = 0;
  ......

C如何调用PHP函数

如题,请知道的高手指点一下,THANKS
PHP函数都是用C实现的~
反其道而行之~

HOHO,关键是,自已再去实现这个功能累啊,PHP有现成的就直接调用好了,

顶起,有高手点解一下,或者是我直接将PHP 源码中的 .c ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号