在线看毛片网站电影-亚洲国产欧美日韩精品一区二区三区,国产欧美乱夫不卡无乱码,国产精品欧美久久久天天影视,精品一区二区三区视频在线观看,亚洲国产精品人成乱码天天看,日韩久久久一区,91精品国产91免费

<menu id="6qfwx"><li id="6qfwx"></li></menu>
    1. <menu id="6qfwx"><dl id="6qfwx"></dl></menu>

      <label id="6qfwx"><ol id="6qfwx"></ol></label><menu id="6qfwx"></menu><object id="6qfwx"><strike id="6qfwx"><noscript id="6qfwx"></noscript></strike></object>
        1. <center id="6qfwx"><dl id="6qfwx"></dl></center>

            新聞中心

            vxworks下文件讀寫示例

            作者: 時(shí)間:2016-10-08 來源:網(wǎng)絡(luò) 收藏

            1.create file on floopy disk and write contents:

            本文引用地址:http://www.biyoush.com/article/201610/305792.htm

            -> pdev=fdDevCreate(0,0,0,0) /* A:,1.44M,whole disk,offset */

            -> dosFsMkfs(/fd0,pdev)

            -> fd=creat(/fd0/myfile,2) or -> fp=fopen(/fd0/myfile,w)

            -> buf=what you want to write to file

            -> write(fd,buf,strlen(buf)+1) or -> fprintf(fp,buf)

            -> close(fd) or -> fclose(fp)

            2.open file and read contents from floopy disk:

            -> readbuf=malloc(100)

            -> fd=open(/fd0/myfile,2) or -> fp=fopen(/fd0/myfile,r)

            -> read(fd,readbuf,100) or -> fread(readbuf,1,50,fp)

            -> printf readbuf

            -> close(fd) or -> close(fp)

            3.on simpc shell:

            -> fp=fopen(host:d:/temp/myfile,w)

            -> fprintf(fp,kjkkhjk)

            -> fclose(fp)



            關(guān)鍵詞:

            評(píng)論


            相關(guān)推薦

            技術(shù)專區(qū)

            關(guān)閉