Search:

Type: Posts; User: westm2000

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,680

    Entire files

    Here's the code in it's entirety. There's a custom library (utildll) that we use to easily create menus and has some useful free functions also. If you want to execute the code as is, make sure to...
  2. Replies
    5
    Views
    1,680

    Value of nCommaLoc

    nCommaLoc is an integer value that displays the position of the comma in the string. If there is no comma, it is taken care of in an earlier section, so if it reaches the point where the code fails,...
  3. Replies
    5
    Views
    1,680

    forgot to attach

    here's the attached "code" excerpt
  4. Replies
    5
    Views
    1,680

    string erase function problems

    I am writing a program that uses some simple string manipulation functions to process names. All is working fine, except when I need to use the erase function. My understanding is that the format is...
  5. Replies
    1
    Views
    1,045

    hmmmm...

    it worked. however, why did it not automatically flush the buffer? do i have to manually do that even though it is such a simple program? thanks again for the help.
  6. Replies
    1
    Views
    1,045

    Text string not appearing - RH problem?

    I've just installed RH8 and tried a simple "hello world" program listed below. However, none of the text appears. The new lines show up, but no text. Not sure what I'm doing wrong.
    ...
  7. Issuing system calls in UNIX

    The mywc program would, ideally, work in both OSs. However, this is not an ideal world and I'm still unfamiliar with what works in one OS and not in another. Thanks to your post, I was able to do a...
  8. command line argument to accept entire directory

    I am writing a program called mywc that mimics a scaled back version of wc. It accepts as command line arguments file(s) and tallies the number of characters, words and lines in that file(s). My...
  9. Replies
    3
    Views
    2,070

    Resolution

    I think I've finished it. At least it accepts the data sets that I have without errors. Here's the code...

    #include<stdio.h>
    #include<string.h>
    #include<stdlib.h>

    main()
    {
    char...
  10. Replies
    3
    Views
    2,070

    Worked perfectly!

    Using strpbrk was exactly what I needed. I'll need to review more of those string.h functions. Thanks!
  11. Replies
    3
    Views
    2,070

    String break to words and numbers

    I am trying to write a function to read data from an input file (specific format of the input file is as follows - each line is of the form: name score). Then, I want to break the string into a...
  12. Replies
    3
    Views
    2,848

    Thanks for the response, Twiggy. However, if I'm...

    Thanks for the response, Twiggy. However, if I'm not mistaken, I think that solution would require the user to hit enter to terminate the string, which, unfortunately, is not an option. I want the...
  13. Replies
    3
    Views
    2,848

    Beginner question- user input termination

    I'm a beginner to C, so please try not to laugh at the following question...

    I am writing a short program that asks the user to input a string, then a small function manipulates the string. It...
  14. Thread: vi editor

    by westm2000
    Replies
    2
    Views
    2,651

    Wow! Thanks for the link. I was doing searches...

    Wow! Thanks for the link. I was doing searches for "vi", "editor", "c", and "programming" and getting overwhelmed with unrelated sites. In ten minutes, I've already answered two questions that I had...
  15. Thread: vi editor

    by westm2000
    Replies
    2
    Views
    2,651

    vi editor

    I am looking to become more proficient using the vi editor and am having some difficulty locating resources. I have examined the man pages, but, geez, it's a bit overwhelming. There's an O'Reilly...
Results 1 to 15 of 15