Actual source code: urlshorten.c

petsc-3.7.3 2016-08-01
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);if (ierr) return ierr;
 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 ierr;
 15: }