how to implement weiler-atherton algorithm?

anybody know how???
i am really weak at programming using openGL.
so please teach me how and please post source code in here.
thank you.