Yurttas/PL/IL/C/F-mar11/04/02/00/07/output.c
Jump to navigation
Jump to search
1/*
2 Copyright(C) 1998
3 All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
4
5 Permission to use, copy, modify, and distribute this
6 software and its documentation for EDUCATIONAL purposes
7 and without fee is hereby granted provided that this
8 copyright notice appears in all copies.
9
10 date : January 1, 1998.
11 author : Salih Yurttas.
12
13 output.c
14*/
15
16
17#include "parameters.h"
18
19#include "io.h"
20
21void output(char **s,
22 int n) {
23 int i;
24
25 char f_name[MAX_SIZE_STRING];
26
27 FILE *f_out;
28
29 printf("\n-> output filename : ");
30 scanf("%s", f_name);
31
32 f_out = fopen(f_name, "w");
33
34 for(i=0; i<n; ++i)
35 fprintf(f_out, "%s", s[i]);
36}