Test Post – Formatting

Test post, purely for trying out formatting. Sample code for searching a linked list is below:

NodePtr search(NodePtr head, int target)
{
    NodePtr here = head;
    if (here == NULL)
        return NULL;
    else
    {
        while (here->data != target && here->link != NULL)
        {
            here = here->link; / moves to next node
        }

        if (here->data == target)
            return here;
        else
            return NULL;
    }
}