Jason,
be aware of that!!! :D
As Meekrosoft said, yes, it is possible. I also used his website when I tried to do that. It works, but there is one big problem:
GTest is objected oriented tool and C language isn't!
In example, in GTest you have a lot of functions (80% of whole API) that request object as parameter, for example:
EXPECT_CALL(turtle, PenDown()) // turtle is object(class) and PenDown() is method of that object
.Times(AtLeast(1));
from GTest website gmock_for_dummies.md
so you will use only macros like expect_equal, expect_bigger_than and so on...
I would like to suggest you tool CMocka (or some other C unit testing tools). It is also from google (modified by group of non-google developers) and it is created directly for C language. I use this one when I want to test C-type source code.
I hope this helps.. :-) Have a nice day.. :-)