Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. JimJoyce

    Terminating a String

    Thanks cpjust, As I said right at the beginning of the thread... I feel such a fool !!! Program's now working. It reads 600 years of easters, which I'm analysing for frequencies and repetitions. Many thanks to All you supporters, JimJ
  2. JimJoyce

    Terminating a String

    Thanks, Salem. That yrs[k][n][12] is the code I wanted. I'd forgotten how to reference that nested array. I'm not sure I need the arrays to be [13] The strings are only 11 chars long. I'll give them both a try.
  3. JimJoyce

    Terminating a String

    I'm not so sure. My output appears to be one long string. I have a source-file (Dates of Easter, from a web site) 23 Apr 2000 20 Apr 2025 10 Apr 2050 7 Apr 2075 15 Apr 2001 5 Apr 2026 2 Apr 2051 19 Apr 2076 31 Mar 2002 28 Mar 2027 21 Apr 2052 11 Apr 2077 20 Apr 2003 16...
  4. JimJoyce

    Terminating a String

    I feel such a fool. Up till a few years ago I used to be a C Instructor. Now my C is very rusty. If I strcpy part of a string into an empty buffer, how do I place a '\0' at the end of the copied data?

Part and Inventory Search

Back
Top