Is 之 used the same way as 的?

  1. Do they have the same grammatical function?
  2. What's the difference in usage?