Date: 2021-03-03T22:25:50+00:00

Actual source code: urlshorten.c
petsc-3.14.5 2021-03-03
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: }

     17: /*TEST

     19:    build:
     20:      requires: ssl

     22:    test:

     24: TEST*/