Actual source code: urlshorten.c

petsc-3.6.1 2015-08-06
Report Typos and Errors

  3: #include <petscsys.h>

  5: int main(int argc,char **argv)
  6: {
  8:   char           shorturl[64];

 10:   PetscInitialize(&argc,&argv,NULL,NULL);
 11:   PetscURLShorten("http://www.google.com",shorturl,64);
 12:   PetscPrintf(PETSC_COMM_SELF,"Long url %s short url %s\n","http://www.google.com",shorturl);
 13:   PetscFinalize();
 14:   return 0;
 15: }