I keep trying this way, but it's hard to come to a conclusion when I keep trying to return the previous characters of the string I look for in the string entered with the
str_chr user-defined function. Can you give me some advice on how to fix the cord?
Of all the conditions, they told me to use the if, else door. It's too difficult because of that condition.c
If the intention is to get a string that exists before the character you are looking for, you can do it as follows.
The "previous" string means "from the beginning to the current position" of the original string, but you must include a null character ('/0') to break from the current position.
This is because in C language, the end of the string is judged by the inner letter.
© 2022 pinfo. All rights reserved.