There are two kinds of formatting: "Quick" and "Low Level". The first merely clears out the directories and file allocation table, whereas the second also erases the data. (My 60D offers both options.) I like to use the low level format because, if successful, it suggests that the entire card is good.
Of course, after a low level format, the pictures, or anything else, are gone forever.
Both kinds of format are also available in Windows 7 and XP (and, I assume, in Vista.)
When I get a new card, I do a low level format in my computer followed by another low level format in the camera to make sure the card works. I suggest using the same procedure when transferring a card to a new camera to avoid messing up the file numbering in the new camera.
Canon 80D, 60D, Canon 10-22EFs, 15-85EFS IS, Sigma 100-400, Sigma 135/1.8ART, Sigma 30mm f/1.4DC, Canon 60mm EFs Macro, Rokinon 8mm fisheye, 550EX flash, Olympus TG6 underwater P&S
Postprocessing: DxOLabs 5, DxO Viewpoint 3, Paint Shop Pro 2021
Speak softly and carry a big zoom.