Thread: concatenating characters not character strings?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Mar 2020
    Posts
    91

    concatenating characters not character strings?

    I have an array of characters (not a char string) and I would like to take certain elements

    example a[4] and a[13]

    and concatenate them together to use in an equality test such as ( == "JR")

    What is the simplest method to concatenate characters into a string to do this?

    strcat seems to work on strings not simple characters
    Last edited by ridgerunnersjw; 01-10-2021 at 03:36 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. concatenating (adding) two character strings
    By Sergei in forum C Programming
    Replies: 1
    Last Post: 12-01-2015, 06:41 AM
  2. Concatenating strings
    By Junky in forum C Programming
    Replies: 2
    Last Post: 11-29-2009, 10:18 AM
  3. concatenating strings?
    By liri in forum C Programming
    Replies: 11
    Last Post: 08-24-2007, 05:34 PM
  4. Concatenating 2 strings
    By AngKar in forum C Programming
    Replies: 14
    Last Post: 04-25-2006, 10:51 AM
  5. Concatenating characters
    By fkheng in forum C Programming
    Replies: 4
    Last Post: 08-22-2003, 09:48 PM

Tags for this Thread