/ Published in: C

Simple File Splitter. No JOINER YET!
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <Windows.h> int fileSize ( char File[] ); void fileNameExt ( char Name[], char Ext[], char File[] ); int main( int argc, char *argv[] ) { FILE *source, *destination; int size, parts; char name[100], ext[100], aux[100]; if( argc < 3 ) { return 0; } fileNameExt( name, ext, argv[1] ); size = fileSize( argv[1] ); { return 0; } for( int i = 0; i < parts; i++ ) { { return 0; } { } } return 0; } int fileSize( char File[] ) { FILE *f; { return 0; } return sz; } void fileNameExt( char Name[], char Ext[], char File[] ) { char *aux; { { aux = File; } } if( aux != File ) { aux++; } for( int i = 0; *aux != '.'; i++, aux++ ) { Name[i] = *aux; Name[i+1] = '\0'; } for( int i = 0; *aux != '\0'; i++, aux++ ) { Ext[i] = *aux; Ext[i+1] = '\0'; } }
Comments
