A man has been given a suspended sentence at Derry Magistrates’ Court for possessing of Class C drugs.