/*
    Convert Unix pathnames to Dos pathnames
    Version 1.0
    Date 20:37 26/07/2019
    By DreamVB
*/
#include <stdio.h>
#include <stdlib.h>

void Unix2Dos(char *s){
    int x = 0;

    while(x < strlen(s)){
        if(s[x] == '/'){
            s[x] = '\\';
        }
        x++;
    }
}

int main()
{
    char Path[80];

    strcpy(Path,"C:/div/home/root/hello.txt");
    //Convert unix to dos path name
    Unix2Dos(Path);
    //Print Path
    printf("%s\n",Path);
    return 0;
}
