Another stack implementation (in C)
Your code looks nice and compiles cleanly - good signs.  Some comments, nevertheless:


all functions except main should be declared static
the opening brace { for a function should be in column 0
stack_print should take a const parameter, as you are not modifying the stack:

 void stack_print(const struct StackItem *current)

the stack variable name current would be better as (for example) stack
you define the stack current by allocating a StackItem but never use
this item.  It would be better to define the stack using just a pointer:

 struct StackItem *current = NULL;


this involves some changes to other functions because the 'empty stack'
condition is no longer (*current)-&gt;previous == NULL but simply *current
== NULL.   This affects stack_pop and stack_print.  The latter becomes:

void stack_print(const struct StackItem *current)
{
    while (current != NULL) {
        printf("%d\n", current-&gt;value);
        current = current-&gt;previous;
    }
}

for-loops are often better than while loops - eg when you are counting
through a range.  And the loop variable is best declared in the loop where
possible:

for (int i = 0; i &lt; 10; ++i) {
    stack_pop(&amp;current);
}

using constants in the code like 10 is often a bad idea.  Some are fine (eg
the 10 in the strtol call, but the loops would be better having a #defined
limit

#define N_VALUES  10

for (int i = 0; i &lt; N_VALUES; ++i) {...}


Such #defines go at the top of the file after the #includes 
gets is not safe and should not be used.  Using gets with a buffer of 10
bytes, if the user types in more than 10 characters the buffer overflows and
overwrites the call stack (not your stack but the process stack).  Use
fgets instead:

fgets(input, (int) sizeof input, stdin);

there is no error handling, but that is ok for an exercise.  In a real
program, you would want to check that malloc does not fail (using perror
to print an error message if it does - an then you have to decide what to do
about the failure) and you might want to return success or failure from
the push/pop functions.