Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
TEST14.C
Package: ertos.rar [view]
Upload User: sunrenlu
Upload Date: 2022-06-13
Package Size: 1419k
Code Size: 1k
Category:
OS Develop
Development Platform:
DOS
- #include <string.h>
- #include <io.h>
- #include <stdio.h>
- #include <rtos.h>
- #include <filename.h>
- main()
- {
- char *test = "c:\brown.dog\white.cat\file.ext";
- char buffer[ 128 ];
- rt_init( 100 );
- cprintf("starting with : %srn", test );
- FileGetPath( test, buffer );
- cprintf("Path = %srn", buffer );
- FileGetName( test, buffer );
- cprintf("Name = %srn", buffer );
- cprintf("Extension = %srn", FileGetExt( test ));
- FileChangeExt( test, "ok", buffer );
- cprintf("Path with ext .ok = %srn", buffer );
- cprintf( "test14.exe : file %srn",
- FileExists( "test14.exe" ) ? "exists" : "missing");
- /* you can rename a file with a function like this */
- // FileRenameExt( "c:\test\x.x",".new");
- }