I am making a function that takes a number from the user\'s input and finds the absolute value of it. I want to make it return an error if the user inputs anything other than j
Have you checked out atoi, or the even better strtol? I recommend starting there.