You are trying to call do_something before you declare it. You need to add a function prototype before your printf line:
char* do_something(char*, const char*);
Or you need to move the function definition above the printf line. You can’t use a function before it is declared.
Related Posts:
- “error: assignment to expression with array type error” when I assign a struct field (C)
- Getting “conflicting types for function” in C, why?
- What does ** do in C language?
- How do I create an array of strings in C?
- How to create an array of strings in C?
- Initialization from incompatible pointer type warning when assigning to a pointer
- How can I find the number of elements in an array?
- Array type char[] is not assignable
- Parameter name omitted error?
- C char array initialization
- Difference between char *argv[] and char **argv for the second argument to main()
- Dynamic vs static array in c
- GCC: Array type has incomplete element type
- variably modified array at file scope in C
- How to split a string into an array in Bash?
- Converting array to list in Java
- What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it?
- char *array and char array[]
- How do I create an array of strings in C?
- Java Error “Exception in thread “main” java.util.InputMismatchException” On an Array program
- How to print elements in a vector c++
- Data type not understood while creating a NumPy array
- “Expected expression before ‘ { ‘ token”
- C pointers and arrays: [Warning] assignment makes pointer from integer without a cast
- How to print the array?
- Are vectors passed to functions by value or by reference in C++
- How do I declare a 2d array in C++ using new?
- Does JavaScript have a method like “range()” to generate a range within the supplied bounds?
- Does JavaScript have a method like “range()” to generate a range within the supplied bounds?
- How do you make an array of structs in C?
- Form submission: PHP S_SESSION statements within a foreach loop
- How to split a string into an array in Bash?
- Working with a List of Lists in Java
- Array Size (Length) in C#
- How to convert jsonString to JSONObject in Java
- Array of arrays (Python/NumPy)
- Is there a function to copy an array in C/C++?
- what does “>>>” mean in java?
- How to convert List
to int[] in Java? - Calculating Standard Deviation & Variance in C++
- How do I create an array of strings in C?
- Return char[]/string from a function [duplicate]
- Javascript Uncaught TypeError: Cannot read property ‘0’ of undefined
- How to convert int[] into List
in Java? - What is a list in Bash?
- In Java, how to append a string more efficiently?
- Using Dynamic Memory allocation for arrays
- How do I remove an array item in TypeScript?
- Finding the length of a Character Array in C
- Return char[]/string from a function
- What does << mean in Ruby?
- How to print a char array in C through printf?
- How to clear all the elements of array in C?
- Zero an array in C code
- Passing an array by reference in C?
- Excess elements in char array initializer error
- How to initialize array to 0 in C?
- How to properly malloc for array of struct in C
- C++ array assign error: invalid array assignment
- I’m getting “Invalid Initializer”, what am I doing wrong?
- Bubble sort algorithm in MIPS
- Convert char array to a int number in C
- Returning an array using C
- Error: unsupported use of matrix or array for column indexing
- Convert char array to string use C
- Iterate through a C array
- Using multiple variables in a for loop in Python
- Weighted random selection from array
- What is the difference between char array and char pointer in C?
- How to copy a char array in C?
- type any? has no subscript members
- C subscripted value is neither array nor pointer nor vector when assigning an array element value
- Java ArrayList for integers
- struct has no member named
- java.lang.ArrayIndexOutOfBoundsException: 4 Error
- IndexError: index 10 is out of bounds for axis 0 with size 10
- Initializing array of structures
- How to empty a char array?
- What is the difference between array and enum in C ?
- Double pointer array in c++
- Can I create an Array of Char pointers in C?
- Excess elements of scalar initializer for pointer to array of ints
- How to sort an array in Bash
- Two-dimensional array in Swift
- How to allocate array of pointers for strings by malloc in C?
- How to declare and use 1D and 2D byte arrays in Verilog?
- char array not assignable
- Warning: comparison of distinct pointer types
- Array to Hash Ruby
- The difference between char * and char[] [duplicate]
- typedef fixed length array
- Print array elements on separate lines in Bash?
- Java says this method has a constructor name
- C: warning: excess elements in array initializer; near initialization for ‘xxx’ ; expects ‘char *’, but has type ‘int’
- Initializing 2D char array in C
- What is the best way to delete a value from an array in Perl?
- How do I check if a string contains a certain character?
- Checking if a key exists in a JavaScript object?
- Numpy matrix to array
- Using the Pythagorean theorem with Java