Then how can i use sleep command for this program I using unix.
Type: Posts; User: vijay85
Then how can i use sleep command for this program I using unix.
#include <stdio.h>
int main()
{
printf("Message 1\n");
sleep();
}
memset(a,'\0',11);
memset(str_date,'\0',9);
strncpy(a,path_departure_date,4);
result=strtok(a,delims);
while(result!=NULL) {
...
i have a .txt file in that i want to take the date between 2008-12-16 to 2008-12-31 from snapshot_date column with this condition i want to pick the whole record.
the below is code which it is...
Thanks a lot.
Hi Meldreth,
Thank you very much but its giving space after each line. Please help me in this.
Thanks and Regards,
Vijay
#include<stdio.h>
int main()
{
FILE *pfile;
char my[200];
pfile=fopen("my1.txt","r");
if(pfile==NULL) perror("error in opening file");
else {
fgets(my,200,pfile);
puts(my);
but i defined it as #define C64_LEN 3
Thanks & regards,
vijay,
for( j=0; j< 3; j++)
{ TmpPathRec.leg2_carry_cost[j] = fss_leg_found->carry_cost[j]; }
in header file
short carry_cost[3];
short leg1_carry_cost[3];
Previously we are...
int main()
{
PATH_WARREN_STRUCT WarrenIn;
PATH_FLT_SNAPSHOT_STRUCT FssIn, Fsearch;
static PATH_FLT_SNAPSHOT_STRUCT TmpFssRec[MAX_ARRAY];
PATH_FLT_SNAPSHOT_STRUCT *...
if ( (LCOFileName =
getenv("LCO_FILE")) == NULL)
{
sprintf(sMessage,"The environment variable LCO_FILE is not set\n");
...
ya i am using unix platform.Can u please send me the command for that
this is the make file-->fcf012u0.mak
c-file is fcf012u0.c
and object file is program2.o it was created by cc -c fcf012u0.c...
i want to create a make file with c program so i need library functions.
i found this in make file.So i want to know how to create these libraries.
[code]
## List all the libraries needed to be...
i want to create a make file so i need library functions.Is there any command like crating object files.
i found this in make file.So i want to know how to create these libraries
## List all...
LIBS = ${LIBDIR}/libfcf041.a
${LIBDIR}/libfcf012.a
i know how to create object files i.e cc -c program2.c
can any one help me in the command for creating library files.
Thanks...
Thanks for ur valuable reply i got it
#include <stdio.h>
#include <strings.h>
#include <stdlib.h>
typedef struct
{
long int flight_no;
float Fare,
Carry_cost_1,
Thanks alot
tabstop and all i changed from char to int its working.
hi tabstop,
when i am compiling i am not getting any warnings.
the o/p i am getting is correct it is reading the file.
939,MUM,ord,396,2,3.0,4.0
100,bom,nru,1009,10,4.0,6.0
but i am getting...
#include<stdio.h>
main()
{
FILE *fp=NULL;
char ch;
fp=fopen("/u/n073313/vijay/File.txt","rb");
while(1)
{
ch=fgetc(fp);
if(ch==EOF)
#include<stdio.h>
int main()
{
char temp[10];
FILE *input1 = NULL;
FILE *input2 = input2 = fopen("File2.txt", "w");
unsigned char buffer[100], lTempData[7][20];
char *lPtr = NULL;
int i =0;...
hi i changed from void main() to int main().
even though i am experiencing the same problem.
thanks for reply salem.
:
#include<stdio.h>
void main()
{
char temp[10];
FILE *input1 = NULL;
FILE *input2 = NULL;
unsigned char buffer[100], lTempData[7][20];
C program to create .txt file containing 10 records. Record schema will be as follows: customer id integer, type of customer char (1) G/B, age integer and name char (20).
#include<stdio.h>
void main()
{
char temp[10];
FILE *input1 = NULL;
FILE *input2 = NULL;
unsigned char buffer[100], lTempData[7][20];
char *lPtr = NULL;
int i =0;
input1 =...