added to check whether c programs could call our malloc