Search Results

Search: Posts Made By: heywoodfloyd
3,475
Posted By heywoodfloyd
trying to compile and don't understand error message
this is my program i am trying to compile


/* filedata -- display information about a file */

#include <stdlib.h>
#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>

/*
*...
2,411
Posted By heywoodfloyd
trouble understanding file option and command line arguments
Hi,

I am creating a program with the C language that simulates the WC command in Unix. My program needs to count lines, bytes and words. I have not added the code to count bytes and words yet. I...
25,806
Posted By heywoodfloyd
changing the s to a d helped a lot. thanks! ...
changing the s to a d helped a lot. thanks!

this is my new code:

#include <stdio.h>

main()
{
int c;
int nl_cnt = 0;

while((c = getchar()) != EOF){

...
25,806
Posted By heywoodfloyd
Memory fault(coredump)
I am writing a program that copies a program and prints the program with a line count.

this is the program I wrote:

#include <stdio.h>

main()
{
int c;
int nl_cnt = 0;

...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 04:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy