Actually it's the other way around. oc meant "yes" in southern France - contrasted with northern France where it was oïl. Languedoc is from langue d'oc "(the place of) the language of oc". Occitan was formed on oc as well.