2021年1月27日星期三

How would you get a string of characters from an array in c? [duplicate]

I am trying to parse data from the user. I need to get a certain number from the user.

And I do not mean like with strstr(). I mean more like characters 9-12 in an array.

For example:

char array[15] = "asdfghjkbruhqw";                            ^--^  

I cannot figure out a way to do this. Any help would be appreciated.

https://stackoverflow.com/questions/65894256/how-would-you-get-a-string-of-characters-from-an-array-in-c January 26, 2021 at 08:20AM

没有评论:

发表评论